Skip to content

Commit 93c585a

Browse files
committed
test(server): should await throwsAsync assert (#9631)
1 parent 0b3dba6 commit 93c585a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/backend/server/src/__tests__/team.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,12 +383,12 @@ test('should be able to revoke team member', async t => {
383383

384384
{
385385
// no permission
386-
t.throwsAsync(
386+
await t.throwsAsync(
387387
revokeUser(app, read.token.token, ws.id, read.id),
388388
{ instanceOf: Error },
389389
'should throw error if not admin'
390390
);
391-
t.throwsAsync(
391+
await t.throwsAsync(
392392
revokeUser(app, read.token.token, ws.id, write.id),
393393
{ instanceOf: Error },
394394
'should throw error if not admin'

0 commit comments

Comments
 (0)