CSR-1564
tests
This commit is contained in:
parent
ad4b53a4b7
commit
cd1354bc6d
1 changed files with 19 additions and 2 deletions
|
|
@ -1492,9 +1492,18 @@ describe("Actions", () => {
|
|||
licensePlate: "ABC123",
|
||||
},
|
||||
},
|
||||
customer: {
|
||||
firstName: "test",
|
||||
lastName: "test",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
context.getters = {
|
||||
...getters,
|
||||
order: getters.order(context),
|
||||
};
|
||||
|
||||
const commit = jest.fn();
|
||||
const dispatch = jest.fn();
|
||||
|
||||
|
|
@ -1538,9 +1547,18 @@ describe("Actions", () => {
|
|||
address: "123 Main St",
|
||||
},
|
||||
},
|
||||
customer: {
|
||||
firstName: "test",
|
||||
lastName: "test",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
context.getters = {
|
||||
...getters,
|
||||
order: getters.order(context),
|
||||
};
|
||||
|
||||
const commit = jest.fn();
|
||||
const dispatch = jest.fn();
|
||||
|
||||
|
|
@ -1552,7 +1570,7 @@ describe("Actions", () => {
|
|||
isCarIdDifferent: true,
|
||||
isSelectedGlassAvailableForVehicle: false,
|
||||
vehicleInfo: { carId: "C010101", vin: "XXXXX" },
|
||||
registrationInfo: { firstName: "abc", lastName: "123" },
|
||||
customerInfo: { firstName: "abc", lastName: "123" },
|
||||
serviceLocationInfo: { state: "CO" },
|
||||
customerEmail: "test@safelite.com",
|
||||
};
|
||||
|
|
@ -1570,7 +1588,6 @@ describe("Actions", () => {
|
|||
);
|
||||
|
||||
expect(commit).toBeCalledWith(storeMutations.UPDATE_VEHICLE, payload.vehicleInfo);
|
||||
expect(commit).toBeCalledWith(storeMutations.UPDATE_REGISTRATION, payload.registrationInfo);
|
||||
});
|
||||
|
||||
it("saveVehicle, should save vehicle info", () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue