diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-03-23 19:52:35 +0300 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2019-03-23 19:53:46 +0300 |
commit | 514ee63826e47229bfd03bdbb740f2dd1eae1d03 (patch) | |
tree | 3f0d96a4402e8aa54c375084cc4c5e6cf546824b /spec/javascripts/image_diff | |
parent | 6d330015dfdb1979a0773c87c53b84cc86b28a6d (diff) |
Move some tests from Karma to Jest
Diffstat (limited to 'spec/javascripts/image_diff')
-rw-r--r-- | spec/javascripts/image_diff/view_types_spec.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/javascripts/image_diff/view_types_spec.js b/spec/javascripts/image_diff/view_types_spec.js deleted file mode 100644 index e9639f46497..00000000000 --- a/spec/javascripts/image_diff/view_types_spec.js +++ /dev/null @@ -1,24 +0,0 @@ -import { viewTypes, isValidViewType } from '~/image_diff/view_types'; - -describe('viewTypes', () => { - describe('isValidViewType', () => { - it('should return true for TWO_UP', () => { - expect(isValidViewType(viewTypes.TWO_UP)).toEqual(true); - }); - - it('should return true for SWIPE', () => { - expect(isValidViewType(viewTypes.SWIPE)).toEqual(true); - }); - - it('should return true for ONION_SKIN', () => { - expect(isValidViewType(viewTypes.ONION_SKIN)).toEqual(true); - }); - - it('should return false for non view types', () => { - expect(isValidViewType('some-view-type')).toEqual(false); - expect(isValidViewType(null)).toEqual(false); - expect(isValidViewType(undefined)).toEqual(false); - expect(isValidViewType('')).toEqual(false); - }); - }); -}); |