summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-05-06 09:57:48 +0100
committerPhil Hughes <me@iamphill.com>2018-05-06 09:57:48 +0100
commit8b240e6ca04edf73c2df23d06350767d6cb6da41 (patch)
treed654c2a1957c90dbaf2eda2454c0f637093d0dde /spec
parent3366ff9e944bcb333f30ff69d57465fc0441cdbd (diff)
downloadgitlab-ce-8b240e6ca04edf73c2df23d06350767d6cb6da41.tar.gz
fixed file action spec
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/ide/stores/actions/file_spec.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/javascripts/ide/stores/actions/file_spec.js b/spec/javascripts/ide/stores/actions/file_spec.js
index 3de48cd0d2d..3ef5a859001 100644
--- a/spec/javascripts/ide/stores/actions/file_spec.js
+++ b/spec/javascripts/ide/stores/actions/file_spec.js
@@ -511,7 +511,10 @@ describe('IDE store file actions', () => {
actions.stageChange,
'path',
store.state,
- [{ type: types.STAGE_CHANGE, payload: 'path' }],
+ [
+ { type: types.STAGE_CHANGE, payload: 'path' },
+ { type: types.SET_LAST_COMMIT_MSG, payload: '' },
+ ],
[],
done,
);
@@ -524,7 +527,10 @@ describe('IDE store file actions', () => {
actions.unstageChange,
'path',
store.state,
- [{ type: types.UNSTAGE_CHANGE, payload: 'path' }],
+ [
+ { type: types.UNSTAGE_CHANGE, payload: 'path' },
+ { type: types.SET_LAST_COMMIT_MSG, payload: '' },
+ ],
[],
done,
);