summaryrefslogtreecommitdiff
path: root/spec/frontend/whats_new/utils/notification_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/whats_new/utils/notification_spec.js')
-rw-r--r--spec/frontend/whats_new/utils/notification_spec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/whats_new/utils/notification_spec.js b/spec/frontend/whats_new/utils/notification_spec.js
index c361f934e59..ef61462a3c5 100644
--- a/spec/frontend/whats_new/utils/notification_spec.js
+++ b/spec/frontend/whats_new/utils/notification_spec.js
@@ -29,7 +29,7 @@ describe('~/whats_new/utils/notification', () => {
subject();
- expect(findNotificationCountEl()).toExist();
+ expect(findNotificationCountEl()).not.toBe(null);
expect(notificationEl.classList).toContain('with-notifications');
});
@@ -38,11 +38,11 @@ describe('~/whats_new/utils/notification', () => {
notificationEl.classList.add('with-notifications');
localStorage.setItem('display-whats-new-notification', 'version-digest');
- expect(findNotificationCountEl()).toExist();
+ expect(findNotificationCountEl()).not.toBe(null);
subject();
- expect(findNotificationCountEl()).not.toExist();
+ expect(findNotificationCountEl()).toBe(null);
expect(notificationEl.classList).not.toContain('with-notifications');
});
});