Skip to content
Snippets Groups Projects
Unverified Commit f7533078 authored by Phil Hughes's avatar Phil Hughes
Browse files

fixed actions spec

parent 4e56af3b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -317,21 +317,6 @@ describe('IDE commit module actions', () => {
.then(done)
.catch(done.fail);
});
it('resets stores commit actions', done => {
store.state.commit.commitAction = consts.COMMIT_TO_NEW_BRANCH;
store
.dispatch('commit/updateFilesAfterCommit', {
data,
branch,
})
.then(() => {
expect(store.state.commit.commitAction).not.toBe(consts.COMMIT_TO_NEW_BRANCH);
})
.then(done)
.catch(done.fail);
});
});
 
describe('commitChanges', () => {
Loading
Loading
@@ -446,6 +431,18 @@ describe('IDE commit module actions', () => {
.catch(done.fail);
});
 
it('resets stores commit actions', done => {
store.state.commit.commitAction = consts.COMMIT_TO_NEW_BRANCH;
store
.dispatch('commit/commitChanges')
.then(() => {
expect(store.state.commit.commitAction).not.toBe(consts.COMMIT_TO_NEW_BRANCH);
})
.then(done)
.catch(done.fail);
});
describe('merge request', () => {
it('redirects to new merge request page', done => {
spyOn(eventHub, '$on');
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment