Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/alert_handler_spec.js')
-rw-r--r--spec/frontend/alert_handler_spec.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/frontend/alert_handler_spec.js b/spec/frontend/alert_handler_spec.js
index e4cd38a7799..228053b1b2b 100644
--- a/spec/frontend/alert_handler_spec.js
+++ b/spec/frontend/alert_handler_spec.js
@@ -26,12 +26,12 @@ describe('Alert Handler', () => {
});
it('should render the alert', () => {
- expect(findFirstAlert()).toExist();
+ expect(findFirstAlert()).not.toBe(null);
});
it('should dismiss the alert on click', () => {
findFirstDismissButton().click();
- expect(findFirstAlert()).not.toExist();
+ expect(findFirstAlert()).toBe(null);
});
});
@@ -58,12 +58,12 @@ describe('Alert Handler', () => {
});
it('should render the banner', () => {
- expect(findFirstBanner()).toExist();
+ expect(findFirstBanner()).not.toBe(null);
});
it('should dismiss the banner on click', () => {
findFirstDismissButton().click();
- expect(findFirstBanner()).not.toExist();
+ expect(findFirstBanner()).toBe(null);
});
});
@@ -79,12 +79,12 @@ describe('Alert Handler', () => {
});
it('should render the banner', () => {
- expect(findFirstAlert()).toExist();
+ expect(findFirstAlert()).not.toBe(null);
});
it('should dismiss the banner on click', () => {
findFirstDismissButtonByClass().click();
- expect(findFirstAlert()).not.toExist();
+ expect(findFirstAlert()).toBe(null);
});
});
});