Commit 1f74f618 authored by jakeburden's avatar jakeburden

Replace store dispatches with direct assignments

parent 4d7d8dde
...@@ -146,16 +146,15 @@ describe('noteActions', () => { ...@@ -146,16 +146,15 @@ describe('noteActions', () => {
}; };
beforeEach(() => { beforeEach(() => {
store.dispatch('setUserData', userDataMock);
store.dispatch('setNoteableData', {
current_user: {
can_update: true,
},
});
wrapper = shallowMountNoteActions(props, { wrapper = shallowMountNoteActions(props, {
targetType: () => 'issue', targetType: () => 'issue',
}); });
store.state.noteableData = {
current_user: {
can_update: true,
},
};
store.state.userData = userDataMock;
}); });
afterEach(() => { afterEach(() => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment