mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01:00
[Test] fix
This commit is contained in:
parent
1e6baf110c
commit
35c2b0d2c8
@ -20,13 +20,12 @@ _chai.use(chaiHttp);
|
|||||||
const server = require('../built/api/server');
|
const server = require('../built/api/server');
|
||||||
const db = require('../built/db/mongodb').default;
|
const db = require('../built/db/mongodb').default;
|
||||||
|
|
||||||
const async = fn => async (done) => {
|
const async = fn => (done) => {
|
||||||
try {
|
fn().then(() => {
|
||||||
await fn();
|
|
||||||
done();
|
done();
|
||||||
} catch (err) {
|
}, err => {
|
||||||
done(err);
|
done(err);
|
||||||
}
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const request = (endpoint, params, me) => new Promise((ok, ng) => {
|
const request = (endpoint, params, me) => new Promise((ok, ng) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user