test: add missing awaits, change error message

This commit is contained in:
Barış Soner Uşaklı
2026-01-16 12:51:11 -05:00
parent fe4a447651
commit 918bb04491

View File

@@ -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]]' }
);
});
});