test(server): should await throwsAsync assert (#9631)

This commit is contained in:
fengmk2
2025-01-10 09:08:10 +00:00
parent 0b3dba614d
commit 93c585a0e2

View File

@@ -383,12 +383,12 @@ test('should be able to revoke team member', async t => {
{
// no permission
t.throwsAsync(
await t.throwsAsync(
revokeUser(app, read.token.token, ws.id, read.id),
{ instanceOf: Error },
'should throw error if not admin'
);
t.throwsAsync(
await t.throwsAsync(
revokeUser(app, read.token.token, ws.id, write.id),
{ instanceOf: Error },
'should throw error if not admin'