summaryrefslogtreecommitdiff
path: root/spec/javascripts/breakpoints_spec.js
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-21 14:21:10 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-21 14:21:10 +0000
commitcb0d23c455b73486fd1015f8ca9479b5b7e3585d (patch)
treed7dc129a407fd74266d2dc561bebf24665197c2f /spec/javascripts/breakpoints_spec.js
parentc3e911be175c0aabfea1eb030f9e0ef23f5f3887 (diff)
downloadgitlab-ce-cb0d23c455b73486fd1015f8ca9479b5b7e3585d.tar.gz
Add latest changes from gitlab-org/gitlab@12-7-stable-ee
Diffstat (limited to 'spec/javascripts/breakpoints_spec.js')
-rw-r--r--spec/javascripts/breakpoints_spec.js27
1 files changed, 0 insertions, 27 deletions
diff --git a/spec/javascripts/breakpoints_spec.js b/spec/javascripts/breakpoints_spec.js
deleted file mode 100644
index fc0d9eb907a..00000000000
--- a/spec/javascripts/breakpoints_spec.js
+++ /dev/null
@@ -1,27 +0,0 @@
-import bp, { breakpoints } from '~/breakpoints';
-
-describe('breakpoints', () => {
- Object.keys(breakpoints).forEach(key => {
- const size = breakpoints[key];
-
- it(`returns ${key} when larger than ${size}`, () => {
- spyOn(bp, 'windowWidth').and.returnValue(size + 10);
-
- expect(bp.getBreakpointSize()).toBe(key);
- });
- });
-
- describe('isDesktop', () => {
- it('returns true when screen size is medium', () => {
- spyOn(bp, 'windowWidth').and.returnValue(breakpoints.md + 10);
-
- expect(bp.isDesktop()).toBe(true);
- });
-
- it('returns false when screen size is small', () => {
- spyOn(bp, 'windowWidth').and.returnValue(breakpoints.sm + 10);
-
- expect(bp.isDesktop()).toBe(false);
- });
- });
-});