add unit test for method
This commit is contained in:
parent
6362735849
commit
bf43bfa42c
1 changed files with 12 additions and 0 deletions
|
|
@ -673,6 +673,18 @@ describe('coverageStatement.vue', () => {
|
|||
);
|
||||
});
|
||||
});
|
||||
describe('openCancelClaimModal', () => {
|
||||
test('when I want to cancel link is clicked, modal opens', () => {
|
||||
// Arrange
|
||||
const { wrapper } = getMountedComponent({});
|
||||
|
||||
// Act
|
||||
wrapper.vm.openCancelClaimModal();
|
||||
|
||||
// Assert
|
||||
expect(wrapper.vm.$refs[CANCEL_CLAIM_REF_NAME].openModal).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
});
|
||||
describe('claim registration api call', () => {
|
||||
it('Loaded duplicate with previously registered claim => claim registration is not called', async () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue