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]
});
const expected = `0/${maxLength}`;
const expected = `${maxLength}/${maxLength}`;
// Act
// Assert

View file

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