diff --git a/src/store/store.spec.js b/src/store/store.spec.js index 8bb15311a..847701e67 100644 --- a/src/store/store.spec.js +++ b/src/store/store.spec.js @@ -980,7 +980,9 @@ describe("Actions", () => { actions.saveServiceZipCodeInfo(context, serviceZipCodeInfo); // Assert - expect(dispatch).toHaveBeenCalledWith(storeActions.RESET_SERVICE_LOCATION_STATE_AND_DEPENDENCIES); + expect(dispatch).toHaveBeenCalledWith( + storeActions.RESET_SERVICE_LOCATION_STATE_AND_DEPENDENCIES + ); expect(commit).toHaveBeenCalledWith(storeMutations.RESET_SERVICE_LOCATION_MOBILE_ADDRESS); }); @@ -1010,8 +1012,12 @@ describe("Actions", () => { actions.saveServiceZipCodeInfo(context, serviceZipCodeInfo); // Assert - expect(dispatch).not.toHaveBeenCalledWith(storeActions.RESET_SERVICE_LOCATION_STATE_AND_DEPENDENCIES); - expect(commit).not.toHaveBeenCalledWith(storeMutations.RESET_SERVICE_LOCATION_MOBILE_ADDRESS); + expect(dispatch).not.toHaveBeenCalledWith( + storeActions.RESET_SERVICE_LOCATION_STATE_AND_DEPENDENCIES + ); + expect(commit).not.toHaveBeenCalledWith( + storeMutations.RESET_SERVICE_LOCATION_MOBILE_ADDRESS + ); }); it("saveServiceLocation, should call mutation and save service address to state", () => { @@ -1321,10 +1327,7 @@ describe("Actions", () => { state: { order: { lineItems: { - supportingItems: [ - "TestValue1", - "TestValue2" - ], + supportingItems: ["TestValue1", "TestValue2"], }, }, }, @@ -1337,7 +1340,7 @@ describe("Actions", () => { context.dispatch = dispatch; // Act - actions.saveSupportingItems(context, [ "TestValue3", "TestValue4", "TestValue5" ]); + actions.saveSupportingItems(context, ["TestValue3", "TestValue4", "TestValue5"]); // Assert expect(dispatch).toBeCalledWith(storeActions.RESET_SERVICE_LOCATION_STATE_AND_DEPENDENCIES); @@ -1349,10 +1352,7 @@ describe("Actions", () => { state: { order: { lineItems: { - supportingItems: [ - "TestValue1", - "TestValue2" - ], + supportingItems: ["TestValue1", "TestValue2"], }, }, }, @@ -1365,10 +1365,12 @@ describe("Actions", () => { context.dispatch = dispatch; // Act - actions.saveSupportingItems(context, [ "TestValue1", "TestValue2" ]); + actions.saveSupportingItems(context, ["TestValue1", "TestValue2"]); // Assert - expect(dispatch).not.toBeCalledWith(storeActions.RESET_SERVICE_LOCATION_STATE_AND_DEPENDENCIES); + expect(dispatch).not.toBeCalledWith( + storeActions.RESET_SERVICE_LOCATION_STATE_AND_DEPENDENCIES + ); }); it("clearVin, should call mutation", () => {