CSR-416 Fix tests
This commit is contained in:
parent
92900249f7
commit
f9160902d5
1 changed files with 12 additions and 6 deletions
|
|
@ -204,8 +204,6 @@ describe("Mutations", () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
const storeState = state;
|
const storeState = state;
|
||||||
|
|
||||||
mutations.resetState(storeState);
|
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
mutations.updateStateWithOrderInformation(storeState, {
|
mutations.updateStateWithOrderInformation(storeState, {
|
||||||
referralNumber: 123,
|
referralNumber: 123,
|
||||||
|
|
@ -217,7 +215,8 @@ describe("Mutations", () => {
|
||||||
model: "ILX",
|
model: "ILX",
|
||||||
style: "4 DOOR SEDAN",
|
style: "4 DOOR SEDAN",
|
||||||
carId: "C0000001",
|
carId: "C0000001",
|
||||||
category: "CAR"
|
category: "CAR",
|
||||||
|
registration: {}
|
||||||
},
|
},
|
||||||
damage: {
|
damage: {
|
||||||
glassToReplace: ["Windshield"],
|
glassToReplace: ["Windshield"],
|
||||||
|
|
@ -226,7 +225,9 @@ describe("Mutations", () => {
|
||||||
},
|
},
|
||||||
parts: [],
|
parts: [],
|
||||||
accountNumber: "123456789",
|
accountNumber: "123456789",
|
||||||
insuranceInfo: {}
|
insuranceInfo: {},
|
||||||
|
serviceLocation: {},
|
||||||
|
customer: {}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
|
|
@ -566,11 +567,16 @@ describe("Actions", () => {
|
||||||
const context = state;
|
const context = state;
|
||||||
|
|
||||||
context.getters = {
|
context.getters = {
|
||||||
vehicle: {},
|
vehicle: {
|
||||||
|
registration: {}
|
||||||
|
},
|
||||||
damage: {},
|
damage: {},
|
||||||
};
|
};
|
||||||
context.state = {
|
context.state = {
|
||||||
order: {}
|
order: {
|
||||||
|
serviceLocation: {},
|
||||||
|
customer: {}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
globalMethods.callHttpClient.mockImplementation(() => {
|
globalMethods.callHttpClient.mockImplementation(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue