From 918bb044918e964c7c162549fd34d34a510b0816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 16 Jan 2026 12:51:11 -0500 Subject: [PATCH] test: add missing awaits, change error message --- test/topics/tools.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/topics/tools.js b/test/topics/tools.js index 879de87b7d..5c5d91f76f 100644 --- a/test/topics/tools.js +++ b/test/topics/tools.js @@ -87,22 +87,22 @@ describe('Topic tools', () => { }); it('should throw when attempting to move a topic from a remote category', async () => { - assert.rejects( + await assert.rejects( topics.tools.move(tid1, { cid: localCid, uid: 'system', }), - '[[error:cant-move-topic-to-from-remote-categories]]' + { message: '[[error:no-topic]]' } ); }); it('should throw when attempting to move a topic to a remote category', async () => { - assert.rejects( + await assert.rejects( topics.tools.move(tid2, { cid: remoteCid, uid: 'system', }), - '[[error:cant-move-topic-to-from-remote-categories]]' + { message: '[[error:cant-move-topic-to-from-remote-categories]]' } ); }); });