Fixing test
This commit is contained in:
parent
0ef1d5046d
commit
b0075d6fd0
2 changed files with 10 additions and 10 deletions
|
|
@ -69,7 +69,7 @@ describe('textarea-question.vue', () => {
|
|||
},
|
||||
mixins: [mockMixin]
|
||||
});
|
||||
const expected = `0/${maxLength}`;
|
||||
const expected = `${maxLength}/${maxLength}`;
|
||||
|
||||
// Act
|
||||
// Assert
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue