unit test fixes

This commit is contained in:
Katie Kroell 2024-01-11 12:12:02 -05:00
parent 6733fbb85b
commit 7e938db2f9
2 changed files with 3 additions and 3 deletions

View file

@ -219,7 +219,7 @@ describe('navigation', () => {
expect(wrapper.vm.mainStore.updatePolicyData).toHaveBeenCalled();
expect(wrapper.vm.mainStore.getCoveragePolicyInfo).toHaveBeenCalled();
});
test('if isCoverageLookupEnabled is false, then getCoveragePolicyInfo not called', async () => {
test('if maxCoverageLookupAttemptsReached is true, then getCoveragePolicyInfo not called', async () => {
// Arrange
const { wrapper } = getMountedComponent({});
useMainStore().getDuplicateReferrals = jest.fn().mockImplementation(() => Promise.resolve({}));
@ -232,7 +232,7 @@ describe('navigation', () => {
expect(wrapper.vm.mainStore.updatePolicyData).toHaveBeenCalled();
expect(wrapper.vm.mainStore.getCoveragePolicyInfo).not.toHaveBeenCalled();
});
test('if isCoverageLookupEnabled is true, then getCoveragePolicyInfo called', async () => {
test('if maxCoverageLookupAttemptsReached is false, then getCoveragePolicyInfo called', async () => {
// Arrange
const { wrapper } = getMountedComponent({});
useMainStore().getDuplicateReferrals = jest.fn().mockImplementation(() => Promise.resolve({}));

View file

@ -310,7 +310,7 @@ export default {
return this.mainStore.issConfig.isCoverageEnabled;
},
maxCoverageLookupAttemptsReached() {
return this.mainStore.applicationUser.coverageAttempts >= 10;
return this.mainStore.applicationUser.coverageAttempts >= 11;
}
},
methods: {