mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-25 09:41:49 +08:00
16 lines
334 B
JavaScript
16 lines
334 B
JavaScript
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))
|
|
})
|