From f9160902d5c936ea6d57854c471dbaf74a0a76cd Mon Sep 17 00:00:00 2001 From: Katie Date: Tue, 10 May 2022 16:49:45 -0400 Subject: [PATCH] CSR-416 Fix tests --- src/store/store.spec.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/store/store.spec.js b/src/store/store.spec.js index 88a080d40..24aa7cbd3 100644 --- a/src/store/store.spec.js +++ b/src/store/store.spec.js @@ -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(() => {