diff options
author | Phil Hughes <me@iamphill.com> | 2019-06-26 14:50:32 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-06-26 14:50:32 +0000 |
commit | 5b97ea3e6ae872a5c72695a425083affad2d1dfc (patch) | |
tree | 5fffcfa518cb76e34c3debbbcb19d275dcc9f4fc /spec/javascripts/ide/stores/mutations_spec.js | |
parent | 4b7f053a49168491215e8ee20060c7283e138858 (diff) | |
parent | f0fc53589755d00320b8c12ae739ba6c18872c3c (diff) | |
download | gitlab-ce-5b97ea3e6ae872a5c72695a425083affad2d1dfc.tar.gz |
Merge branch '58802-rename-webide' into 'master'
Resolve "Re-name files in Web IDE in a more natural way"
Closes #58802
See merge request gitlab-org/gitlab-ce!29948
Diffstat (limited to 'spec/javascripts/ide/stores/mutations_spec.js')
-rw-r--r-- | spec/javascripts/ide/stores/mutations_spec.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/spec/javascripts/ide/stores/mutations_spec.js b/spec/javascripts/ide/stores/mutations_spec.js index 5ee098bf17f..460c5b01081 100644 --- a/spec/javascripts/ide/stores/mutations_spec.js +++ b/spec/javascripts/ide/stores/mutations_spec.js @@ -309,7 +309,7 @@ describe('Multi-file store mutations', () => { ...localState.entries.oldPath, id: 'newPath', name: 'newPath', - key: 'newPath-blob-name', + key: 'newPath-blob-oldPath', path: 'newPath', tempFile: true, prevPath: 'oldPath', @@ -318,6 +318,7 @@ describe('Multi-file store mutations', () => { url: `${gl.TEST_HOST}/newPath`, moved: jasmine.anything(), movedPath: jasmine.anything(), + opened: false, }); }); @@ -349,13 +350,5 @@ describe('Multi-file store mutations', () => { expect(localState.entries.parentPath.tree.length).toBe(1); }); - - it('adds to openFiles if previously opened', () => { - localState.entries.oldPath.opened = true; - - mutations.RENAME_ENTRY(localState, { path: 'oldPath', name: 'newPath' }); - - expect(localState.openFiles).toEqual([localState.entries.newPath]); - }); }); }); |