Fix tests
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user