notifications: clearAlert

This commit is contained in:
Girish Ramakrishnan
2023-03-26 14:18:37 +02:00
parent 0ab73d6c5e
commit 61ba3cbfc2
3 changed files with 28 additions and 19 deletions

View File

@@ -105,8 +105,8 @@ describe('Notifications', function () {
expect(result.acknowledged).to.be(false); // notification resurfaces
});
it('can delete the alert', async function () {
const id = await notifications.alert(notifications.ALERT_BOX_UPDATE, 'Cloudron xx is available', '');
it('can clear the alert', async function () {
const id = await notifications.clearAlert(notifications.ALERT_BOX_UPDATE, 'Cloudron xx is available');
expect(id).to.be(null);
const result = await notifications.get(alertId);