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