Commit e021f274 authored by Samantha Ming's avatar Samantha Ming

Convert approvals app_spec to a jest test

parent 67aef3cd
......@@ -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