Commit 2a019f50 authored by Denys Mishunov's avatar Denys Mishunov

Merge branch 'convert-approvals-spec-to-jest' into 'master'

Convert approvals app_spec to a jest test

See merge request gitlab-org/gitlab!28069
parents 050a96c0 e021f274
......@@ -38,8 +38,13 @@ describe('EE Approvals App', () => {
canEdit: true,
prefix: APP_PREFIX,
});
spyOn(store.modules.approvals.actions, 'fetchRules');
spyOn(store.modules.createModal.actions, 'open');
store.modules.approvals.actions = {
fetchRules: jest.fn(),
};
jest.spyOn(store.modules.approvals.actions, 'fetchRules');
jest.spyOn(store.modules.createModal.actions, 'open');
});
describe('when allow multi rule', () => {
......@@ -136,7 +141,7 @@ describe('EE Approvals App', () => {
findAddButton().vm.$emit('click');
expect(store.modules.createModal.actions.open).toHaveBeenCalledWith(
jasmine.anything(),
expect.anything(),
null,
undefined,
);
......
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