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]
|
mixins: [mockMixin]
|
||||||
});
|
});
|
||||||
const expected = `0/${maxLength}`;
|
const expected = `${maxLength}/${maxLength}`;
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
// Assert
|
// Assert
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue