diff --git a/test/api.ts b/test/api.ts index b85511d802..d5517f9235 100644 --- a/test/api.ts +++ b/test/api.ts @@ -18,7 +18,7 @@ const chaiHttp = require('chai-http'); _chai.use(chaiHttp); -const server = require('../built/server/api'); +const server = require('../built/server/api').callback(); const db = require('../built/db/mongodb').default; const async = fn => (done) => {