diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-02 06:07:52 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-02 06:07:52 +0000 |
commit | ba836d98593d68d8d6c22c540e31c8031a786bd8 (patch) | |
tree | 09e500506edc566b08ea006ce41aa411990b9236 /spec/javascripts | |
parent | 796b00a98a82fcbe082c9343fd4efcccc77478dc (diff) | |
download | gitlab-ce-ba836d98593d68d8d6c22c540e31c8031a786bd8.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/ide/components/commit_sidebar/actions_spec.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/javascripts/ide/components/commit_sidebar/actions_spec.js b/spec/javascripts/ide/components/commit_sidebar/actions_spec.js index d02d8fa0253..a8e6195a67c 100644 --- a/spec/javascripts/ide/components/commit_sidebar/actions_spec.js +++ b/spec/javascripts/ide/components/commit_sidebar/actions_spec.js @@ -85,6 +85,13 @@ describe('IDE commit sidebar actions', () => { expect(vm.$store.dispatch).not.toHaveBeenCalled(); }); + it('is not called on mount if there is already a selected commitAction', () => { + store.state.commitAction = '1'; + createComponent({ currentBranchId: null }); + + expect(vm.$store.dispatch).not.toHaveBeenCalled(); + }); + it('calls again after staged changes', done => { createComponent({ currentBranchId: null }); |