Formatting

This commit is contained in:
Chloe Herd 2023-06-20 16:22:38 -04:00
parent 74af79a8f3
commit 98d8d68aee

View file

@ -980,7 +980,9 @@ describe("Actions", () => {
actions.saveServiceZipCodeInfo(context, serviceZipCodeInfo); actions.saveServiceZipCodeInfo(context, serviceZipCodeInfo);
// Assert // 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); expect(commit).toHaveBeenCalledWith(storeMutations.RESET_SERVICE_LOCATION_MOBILE_ADDRESS);
}); });
@ -1010,8 +1012,12 @@ describe("Actions", () => {
actions.saveServiceZipCodeInfo(context, serviceZipCodeInfo); actions.saveServiceZipCodeInfo(context, serviceZipCodeInfo);
// Assert // Assert
expect(dispatch).not.toHaveBeenCalledWith(storeActions.RESET_SERVICE_LOCATION_STATE_AND_DEPENDENCIES); expect(dispatch).not.toHaveBeenCalledWith(
expect(commit).not.toHaveBeenCalledWith(storeMutations.RESET_SERVICE_LOCATION_MOBILE_ADDRESS); 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", () => { it("saveServiceLocation, should call mutation and save service address to state", () => {
@ -1321,10 +1327,7 @@ describe("Actions", () => {
state: { state: {
order: { order: {
lineItems: { lineItems: {
supportingItems: [ supportingItems: ["TestValue1", "TestValue2"],
"TestValue1",
"TestValue2"
],
}, },
}, },
}, },
@ -1337,7 +1340,7 @@ describe("Actions", () => {
context.dispatch = dispatch; context.dispatch = dispatch;
// Act // Act
actions.saveSupportingItems(context, [ "TestValue3", "TestValue4", "TestValue5" ]); actions.saveSupportingItems(context, ["TestValue3", "TestValue4", "TestValue5"]);
// Assert // Assert
expect(dispatch).toBeCalledWith(storeActions.RESET_SERVICE_LOCATION_STATE_AND_DEPENDENCIES); expect(dispatch).toBeCalledWith(storeActions.RESET_SERVICE_LOCATION_STATE_AND_DEPENDENCIES);
@ -1349,10 +1352,7 @@ describe("Actions", () => {
state: { state: {
order: { order: {
lineItems: { lineItems: {
supportingItems: [ supportingItems: ["TestValue1", "TestValue2"],
"TestValue1",
"TestValue2"
],
}, },
}, },
}, },
@ -1365,10 +1365,12 @@ describe("Actions", () => {
context.dispatch = dispatch; context.dispatch = dispatch;
// Act // Act
actions.saveSupportingItems(context, [ "TestValue1", "TestValue2" ]); actions.saveSupportingItems(context, ["TestValue1", "TestValue2"]);
// Assert // 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", () => { it("clearVin, should call mutation", () => {