mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
test(server): should await throwsAsync assert (#9631)
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user