Fix tests

This commit is contained in:
Girish Ramakrishnan
2023-07-11 16:32:28 +05:30
parent 2d4e7c9c0a
commit 5beb7d7d92
5 changed files with 15 additions and 16 deletions
+2 -2
View File
@@ -69,7 +69,7 @@ describe('Notifications', function () {
});
it('cannot update non-existent notification', async function () {
const [error] = await safe(notifications.update({ id: 'random' }, { title: 'updated title 0', message: 'updated message 0', acknowledged: true }));
const [error] = await safe(notifications.update({ id: '1245' }, { title: 'updated title 0', message: 'updated message 0', acknowledged: true }));
expect(error.reason).to.be(BoxError.NOT_FOUND);
});
@@ -79,7 +79,7 @@ describe('Notifications', function () {
});
it('cannot delete non-existent notification', async function () {
const [error] = await safe(notifications.del('random'));
const [error] = await safe(notifications.del('5213'));
expect(error.reason).to.be(BoxError.NOT_FOUND);
});