|
@@ -14,6 +14,8 @@ chai.use(require('chai-things'))
|
|
describe('AdminToken', () => {
|
|
describe('AdminToken', () => {
|
|
//Wait for app to start before commencing
|
|
//Wait for app to start before commencing
|
|
before((done) => {
|
|
before((done) => {
|
|
|
|
+ if(server.locals.appStarted) done()
|
|
|
|
+
|
|
server.on('appStarted', () => {
|
|
server.on('appStarted', () => {
|
|
done()
|
|
done()
|
|
})
|
|
})
|