mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
[Test] fix
This commit is contained in:
parent
1e6baf110c
commit
35c2b0d2c8
1 changed files with 4 additions and 5 deletions
|
@ -20,13 +20,12 @@ _chai.use(chaiHttp);
|
|||
const server = require('../built/api/server');
|
||||
const db = require('../built/db/mongodb').default;
|
||||
|
||||
const async = fn => async (done) => {
|
||||
try {
|
||||
await fn();
|
||||
const async = fn => (done) => {
|
||||
fn().then(() => {
|
||||
done();
|
||||
} catch (err) {
|
||||
}, err => {
|
||||
done(err);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
const request = (endpoint, params, me) => new Promise((ok, ng) => {
|
||||
|
|
Loading…
Reference in a new issue