Fixing test

This commit is contained in:
brydon1 2023-07-12 14:08:57 -04:00
parent 0ef1d5046d
commit b0075d6fd0
2 changed files with 10 additions and 10 deletions

View file

@ -69,7 +69,7 @@ describe('textarea-question.vue', () => {
}, },
mixins: [mockMixin] mixins: [mockMixin]
}); });
const expected = `0/${maxLength}`; const expected = `${maxLength}/${maxLength}`;
// Act // Act
// Assert // Assert

View file

@ -210,16 +210,16 @@ describe('contactDetails.vue', () => {
contactInfo contactInfo
} }
}; };
const mountOptions = getMountOptions();
mountOptions.global = {
plugins: [createTestingPinia({
initialState: {
main: mainInitialState
}
})]
};
const wrapper = shallowMount(contactDetails, getMountOptions({ const wrapper = shallowMount(contactDetails, mountOptions);
global: {
plugins: [createTestingPinia({
initialState: {
main: mainInitialState
}
})]
}
}));
// Assert // Assert
expect(wrapper.vm.firstName).toBe(contactInfo.firstName); expect(wrapper.vm.firstName).toBe(contactInfo.firstName);