add unit test for method

This commit is contained in:
Katie Kroell 2026-02-16 14:51:49 -05:00
parent 6362735849
commit bf43bfa42c

View file

@ -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 () => {