Add iTac called test

This commit is contained in:
Bill Richardson 2023-09-29 18:01:34 -04:00
parent 286f8662f6
commit 6dd1c69231

View file

@ -795,3 +795,26 @@ describe.skip('coverageStatement.vue', () => {
});
});
});
describe('coverageStatement.vue-working', () => {
describe('Navigation', () => {
test('Function called on any FORWARD navigation', () => {
// Arrange
const mainInitialState = {
order: {
policy: {
isITAC: null
}
}
};
const { wrapper } = getMountedComponent(mainInitialState);
// Act
wrapper.vm.forwardButtonAction();
// Assert
expect(wrapper.vm.mainStore.updatePolicyITACFlag)
.toHaveBeenCalledTimes(1);
});
});
});