diff options
Diffstat (limited to 'spec/frontend/diffs/store/utils_spec.js')
-rw-r--r-- | spec/frontend/diffs/store/utils_spec.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/frontend/diffs/store/utils_spec.js b/spec/frontend/diffs/store/utils_spec.js index 6f55f76d7b5..8852c6c62c5 100644 --- a/spec/frontend/diffs/store/utils_spec.js +++ b/spec/frontend/diffs/store/utils_spec.js @@ -1,4 +1,3 @@ -import { clone } from 'lodash'; import { LINE_POSITION_LEFT, LINE_POSITION_RIGHT, @@ -14,10 +13,9 @@ import { import * as utils from '~/diffs/store/utils'; import { MERGE_REQUEST_NOTEABLE_TYPE } from '~/notes/constants'; import { noteableDataMock } from 'jest/notes/mock_data'; -import diffFileMockData from '../mock_data/diff_file'; +import { getDiffFileMock } from '../mock_data/diff_file'; import { diffMetadata } from '../mock_data/diff_metadata'; -const getDiffFileMock = () => JSON.parse(JSON.stringify(diffFileMockData)); const getDiffMetadataMock = () => JSON.parse(JSON.stringify(diffMetadata)); describe('DiffsStoreUtils', () => { @@ -47,7 +45,7 @@ describe('DiffsStoreUtils', () => { let diffFile; beforeEach(() => { - diffFile = { ...clone(diffFileMockData) }; + diffFile = getDiffFileMock(); }); it('should return the correct previous line number', () => { |