diff options
Diffstat (limited to 'spec/frontend/image_diff/replaced_image_diff_spec.js')
-rw-r--r-- | spec/frontend/image_diff/replaced_image_diff_spec.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/frontend/image_diff/replaced_image_diff_spec.js b/spec/frontend/image_diff/replaced_image_diff_spec.js index 10827d76e55..16be4b82ad7 100644 --- a/spec/frontend/image_diff/replaced_image_diff_spec.js +++ b/spec/frontend/image_diff/replaced_image_diff_spec.js @@ -1,4 +1,4 @@ -import { TEST_HOST } from 'jest/helpers/test_constants'; +import { TEST_HOST } from 'helpers/test_constants'; import ReplacedImageDiff from '~/image_diff/replaced_image_diff'; import ImageDiff from '~/image_diff/image_diff'; import { viewTypes } from '~/image_diff/view_types'; @@ -176,8 +176,8 @@ describe('ReplacedImageDiff', () => { expect(ImageDiff.prototype.bindEvents).toHaveBeenCalled(); }); - it('should register click eventlistener to 2-up view mode', done => { - jest.spyOn(ReplacedImageDiff.prototype, 'changeView').mockImplementation(viewMode => { + it('should register click eventlistener to 2-up view mode', (done) => { + jest.spyOn(ReplacedImageDiff.prototype, 'changeView').mockImplementation((viewMode) => { expect(viewMode).toEqual(viewTypes.TWO_UP); done(); }); @@ -186,8 +186,8 @@ describe('ReplacedImageDiff', () => { replacedImageDiff.viewModesEls[viewTypes.TWO_UP].click(); }); - it('should register click eventlistener to swipe view mode', done => { - jest.spyOn(ReplacedImageDiff.prototype, 'changeView').mockImplementation(viewMode => { + it('should register click eventlistener to swipe view mode', (done) => { + jest.spyOn(ReplacedImageDiff.prototype, 'changeView').mockImplementation((viewMode) => { expect(viewMode).toEqual(viewTypes.SWIPE); done(); }); @@ -196,8 +196,8 @@ describe('ReplacedImageDiff', () => { replacedImageDiff.viewModesEls[viewTypes.SWIPE].click(); }); - it('should register click eventlistener to onion skin view mode', done => { - jest.spyOn(ReplacedImageDiff.prototype, 'changeView').mockImplementation(viewMode => { + it('should register click eventlistener to onion skin view mode', (done) => { + jest.spyOn(ReplacedImageDiff.prototype, 'changeView').mockImplementation((viewMode) => { expect(viewMode).toEqual(viewTypes.SWIPE); done(); }); @@ -325,7 +325,7 @@ describe('ReplacedImageDiff', () => { setupImageFrameEls(); }); - it('should pass showCommentIndicator normalized indicator values', done => { + it('should pass showCommentIndicator normalized indicator values', (done) => { jest.spyOn(imageDiffHelper, 'showCommentIndicator').mockImplementation(() => {}); jest .spyOn(imageDiffHelper, 'resizeCoordinatesToImageElement') @@ -339,7 +339,7 @@ describe('ReplacedImageDiff', () => { replacedImageDiff.renderNewView(indicator); }); - it('should call showCommentIndicator', done => { + it('should call showCommentIndicator', (done) => { const normalized = { normalized: true, }; |