You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
334 B
16 lines
334 B
const fs = require('fs')
|
|
const path = require('path')
|
|
|
|
let app
|
|
before(() => {
|
|
app = require('./app.js')
|
|
global.host = 'http://localhost:' + app.server.address().port
|
|
})
|
|
after((done) => {
|
|
app.server.close(done)
|
|
})
|
|
|
|
fs.readdirSync(path.join(__dirname, 'test')).forEach((file) => {
|
|
require(path.join(__dirname, 'test', file))
|
|
})
|