CSR-416 Fix tests

This commit is contained in:
Katie 2022-05-10 16:49:45 -04:00
parent 92900249f7
commit f9160902d5

View file

@ -204,8 +204,6 @@ describe("Mutations", () => {
// Arrange
const storeState = state;
mutations.resetState(storeState);
// Act
mutations.updateStateWithOrderInformation(storeState, {
referralNumber: 123,
@ -217,7 +215,8 @@ describe("Mutations", () => {
model: "ILX",
style: "4 DOOR SEDAN",
carId: "C0000001",
category: "CAR"
category: "CAR",
registration: {}
},
damage: {
glassToReplace: ["Windshield"],
@ -226,7 +225,9 @@ describe("Mutations", () => {
},
parts: [],
accountNumber: "123456789",
insuranceInfo: {}
insuranceInfo: {},
serviceLocation: {},
customer: {}
});
// Assert
@ -566,11 +567,16 @@ describe("Actions", () => {
const context = state;
context.getters = {
vehicle: {},
vehicle: {
registration: {}
},
damage: {},
};
context.state = {
order: {}
order: {
serviceLocation: {},
customer: {}
}
};
globalMethods.callHttpClient.mockImplementation(() => {