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_integration/fly_out_nav_browser_spec.js')
-rw-r--r--spec/frontend_integration/fly_out_nav_browser_spec.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/frontend_integration/fly_out_nav_browser_spec.js b/spec/frontend_integration/fly_out_nav_browser_spec.js
index 47f3c6a0ac2..07ddc0220e6 100644
--- a/spec/frontend_integration/fly_out_nav_browser_spec.js
+++ b/spec/frontend_integration/fly_out_nav_browser_spec.js
@@ -308,19 +308,19 @@ describe('Fly out sidebar navigation', () => {
describe('canShowSubItems', () => {
it('returns true if on desktop size', () => {
- expect(canShowSubItems()).toBeTruthy();
+ expect(canShowSubItems()).toBe(true);
});
it('returns false if on mobile size', () => {
breakpointSize = 'xs';
- expect(canShowSubItems()).toBeFalsy();
+ expect(canShowSubItems()).toBe(false);
});
});
describe('canShowActiveSubItems', () => {
it('returns true by default', () => {
- expect(canShowActiveSubItems(el)).toBeTruthy();
+ expect(canShowActiveSubItems(el)).toBe(true);
});
it('returns false when active & expanded sidebar', () => {
@@ -329,7 +329,7 @@ describe('Fly out sidebar navigation', () => {
setSidebar(sidebar);
- expect(canShowActiveSubItems(el)).toBeFalsy();
+ expect(canShowActiveSubItems(el)).toBe(false);
});
it('returns true when active & collapsed sidebar', () => {
@@ -339,7 +339,7 @@ describe('Fly out sidebar navigation', () => {
setSidebar(sidebar);
- expect(canShowActiveSubItems(el)).toBeTruthy();
+ expect(canShowActiveSubItems(el)).toBe(true);
});
});