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
|
||||
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(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue