CASH-176
CASDH-176 mock emailOrSms for test
This commit is contained in:
parent
a30f1151b1
commit
d728cd7648
1 changed files with 2 additions and 1 deletions
|
|
@ -181,6 +181,7 @@ function applyMockStoreDataToGetters() {
|
||||||
payment: mockStoreData.payment,
|
payment: mockStoreData.payment,
|
||||||
policy: mockStoreData.policy,
|
policy: mockStoreData.policy,
|
||||||
externalParameterServiceZip: mockStoreData.externalParameterServiceZip,
|
externalParameterServiceZip: mockStoreData.externalParameterServiceZip,
|
||||||
|
emailOrSms: mockStoreData.customer.emailAddress,
|
||||||
};
|
};
|
||||||
store.state.order = mockStoreData;
|
store.state.order = mockStoreData;
|
||||||
store.state.applicationUser.experiments = mockExperimentSettings;
|
store.state.applicationUser.experiments = mockExperimentSettings;
|
||||||
|
|
@ -241,7 +242,7 @@ describe("service-zip.vue", () => {
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
expect(wrapper.vm.serviceZipCode).toEqual("11111");
|
expect(wrapper.vm.serviceZipCode).toEqual("11111");
|
||||||
expect(wrapper.vm.emailAddress).toEqual("builddigitaltest@safelite.com");
|
expect(wrapper.vm.emailOrSms).toEqual("builddigitaltest@safelite.com");
|
||||||
});
|
});
|
||||||
|
|
||||||
test("Zip in querystring -> pushed to data", () => {
|
test("Zip in querystring -> pushed to data", () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue