diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-06 18:09:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-06 18:09:11 +0300 |
commit | 0eb3d2f799ce4f4de87fb9fc6fd98e592323bc89 (patch) | |
tree | fd70d5bc63fe152e0a67aaa5a70e4c9f16dc6ffc /spec/frontend/ide/stores/mutations_spec.js | |
parent | 5564275a0b378298dc6281599cbfe71a937109ff (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/ide/stores/mutations_spec.js')
-rw-r--r-- | spec/frontend/ide/stores/mutations_spec.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/frontend/ide/stores/mutations_spec.js b/spec/frontend/ide/stores/mutations_spec.js index eb89c92914a..9fe75d596fb 100644 --- a/spec/frontend/ide/stores/mutations_spec.js +++ b/spec/frontend/ide/stores/mutations_spec.js @@ -196,16 +196,6 @@ describe('Multi-file store mutations', () => { }); }); - describe('BURST_UNUSED_SEAL', () => { - it('updates unusedSeal', () => { - expect(localState.unusedSeal).toBe(true); - - mutations.BURST_UNUSED_SEAL(localState); - - expect(localState.unusedSeal).toBe(false); - }); - }); - describe('SET_ERROR_MESSAGE', () => { it('updates error message', () => { mutations.SET_ERROR_MESSAGE(localState, 'error'); @@ -297,6 +287,16 @@ describe('Multi-file store mutations', () => { expect(localState.changedFiles).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', () => { |