mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-24 00:39:32 +09:00
[Test] fix
This commit is contained in:
parent
034c7c083a
commit
95a481fcc4
@ -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 New Issue
Block a user