Skip to content

Node.js based forum software built for the modern web

test: add missing await

Barış Soner Uşaklı0900ab24b711
diff --git a/test/categories.js b/test/categories.js
index bf70205089..bc740b6387 100644
--- a/test/categories.js
+++ b/test/categories.js
@@ -492,7 +492,7 @@ describe('Categories', () => {
});
it('should error if both cid and privilege are arrays', async () => {
- assert.rejects(
+ await assert.rejects(
privileges.categories.can(['topics:create', 'topics:delete'], [categoryObj.cid], posterUid),
{ message: '[[error:invalid-data]]' },
);