diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 11:18:50 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 11:18:50 +0000 |
commit | 8c7f4e9d5f36cff46365a7f8c4b9c21578c1e781 (patch) | |
tree | a77e7fe7a93de11213032ed4ab1f33a3db51b738 /spec/frontend/ide/stores/mutations_spec.js | |
parent | 00b35af3db1abfe813a778f643dad221aad51fca (diff) | |
download | gitlab-ce-8c7f4e9d5f36cff46365a7f8c4b9c21578c1e781.tar.gz |
Add latest changes from gitlab-org/gitlab@13-1-stable-ee
Diffstat (limited to 'spec/frontend/ide/stores/mutations_spec.js')
-rw-r--r-- | spec/frontend/ide/stores/mutations_spec.js | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/spec/frontend/ide/stores/mutations_spec.js b/spec/frontend/ide/stores/mutations_spec.js index 2eca9acb8d8..1b29648fb8b 100644 --- a/spec/frontend/ide/stores/mutations_spec.js +++ b/spec/frontend/ide/stores/mutations_spec.js @@ -120,24 +120,6 @@ describe('Multi-file store mutations', () => { expect(localState.trees['gitlab-ce/master'].tree.length).toEqual(1); expect(localState.entries.test.tempFile).toEqual(true); }); - - it('marks entry as replacing previous entry if the old one has been deleted', () => { - const tmpFile = file('test'); - localState.entries.test = { ...tmpFile, deleted: true }; - mutations.CREATE_TMP_ENTRY(localState, { - data: { - entries: { - test: { ...tmpFile, tempFile: true, changed: true }, - }, - treeList: [tmpFile], - }, - projectId: 'gitlab-ce', - branchId: 'master', - }); - - expect(localState.trees['gitlab-ce/master'].tree.length).toEqual(1); - expect(localState.entries.test.replaces).toEqual(true); - }); }); describe('UPDATE_TEMP_FLAG', () => { @@ -265,16 +247,6 @@ describe('Multi-file store mutations', () => { expect(localState.changedFiles).toEqual([]); expect(localState.stagedFiles).toEqual([]); }); - - it('bursts unused seal', () => { - localState.entries.test = file('test'); - - expect(localState.unusedSeal).toBe(true); - - mutations.DELETE_ENTRY(localState, 'test'); - - expect(localState.unusedSeal).toBe(false); - }); }); describe('UPDATE_FILE_AFTER_COMMIT', () => { @@ -283,10 +255,6 @@ describe('Multi-file store mutations', () => { ...file('test'), prevPath: 'testing-123', rawPath: `${TEST_HOST}/testing-123`, - permalink: `${TEST_HOST}/testing-123`, - commitsPath: `${TEST_HOST}/testing-123`, - blamePath: `${TEST_HOST}/testing-123`, - replaces: true, }; localState.entries.test = f; localState.changedFiles.push(f); @@ -301,10 +269,6 @@ describe('Multi-file store mutations', () => { expect(f).toEqual( expect.objectContaining({ rawPath: `${TEST_HOST}/test`, - permalink: `${TEST_HOST}/test`, - commitsPath: `${TEST_HOST}/test`, - blamePath: `${TEST_HOST}/test`, - replaces: false, prevId: undefined, prevPath: undefined, prevName: undefined, |