Skip to content

Commit 2af11bb

Browse files
author
Felipe Parreira
committed
test: turn test callback synchronous
1 parent 2c4eeb0 commit 2af11bb

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/end-to-end/api/01-users.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,8 @@ describe('[Users]', function() {
335335
});
336336
});
337337

338-
it('should correctly route users that have `ufs` in their username', async () => {
339-
await request.post(api('users.create'))
338+
it('should correctly route users that have `ufs` in their username', (done) => {
339+
request.post(api('users.create'))
340340
.set(credentials)
341341
.send({
342342
@@ -347,9 +347,10 @@ describe('[Users]', function() {
347347
.expect(200)
348348
.expect((res) => {
349349
expect(res.body).to.have.property('success', true);
350-
});
350+
})
351+
.end(done);
351352

352-
await request.get(api('users.info'))
353+
request.get(api('users.info'))
353354
.set(credentials)
354355
.query({
355356
username: 'ufs',
@@ -361,7 +362,8 @@ describe('[Users]', function() {
361362
expect(res.body.user).to.have.property('name', 'testuser');
362363
expect(res.body.user).to.have.property('username', 'ufs');
363364
expect(res.body.user).to.have.property('active', true);
364-
});
365+
})
366+
.end(done);
365367
});
366368
});
367369
describe('[/users.getPresence]', () => {

0 commit comments

Comments
 (0)