Update test to account for changes
This commit is contained in:
parent
0ec6bb17eb
commit
6ec3d55de9
1 changed files with 26 additions and 1 deletions
|
|
@ -330,6 +330,30 @@ describe('contactDetails.vue', () => {
|
|||
navigate: jest.fn()
|
||||
}
|
||||
});
|
||||
const provider = {
|
||||
address: {
|
||||
city: getRandomString(4, 20),
|
||||
state: getRandomString(2, 2),
|
||||
streetAddress: getRandomString(10, 50),
|
||||
zipCode: getRandomInt(10000, 99999).toString(),
|
||||
zipCodeCtu: getRandomInt(10000, 99999).toString()
|
||||
},
|
||||
companyName: getRandomString(5, 15),
|
||||
phoneNumber: getRandomInt(1000000000, 9999999999).toString(),
|
||||
providerNumber: getRandomInt(100000, 999999).toString()
|
||||
}
|
||||
const mainInitialState = {
|
||||
order: {
|
||||
serviceLocation: {
|
||||
provider
|
||||
}
|
||||
}
|
||||
};
|
||||
mountOptions.global.plugins = [createTestingPinia({
|
||||
initialState: {
|
||||
main: mainInitialState
|
||||
}
|
||||
})];
|
||||
const wrapper = shallowMount(contactDetails, mountOptions);
|
||||
const address = getRandomString(10, 50);
|
||||
const address2 = getRandomString(0, 50);
|
||||
|
|
@ -354,7 +378,8 @@ describe('contactDetails.vue', () => {
|
|||
address,
|
||||
address2,
|
||||
city,
|
||||
isVehicleProtected
|
||||
isVehicleProtected,
|
||||
provider
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue