This commit is contained in:
Chloe Herd 2023-09-19 12:49:51 -04:00
parent 5ff14add7b
commit e4d98521d8

View file

@ -101,8 +101,8 @@ describe("baseMixin.js", () => {
test("getZipCodeData calls dispatch", () => {
const mixIn = getMixInInstance({});
mixIn.methods.dispatchStoreAction = jest.fn();
mixIn.methods.dispatchStoreAction.mockReturnValue({
mixIn.methods.dispatchStoreActionWithLogging = jest.fn();
mixIn.methods.dispatchStoreActionWithLogging.mockReturnValue({
data: { isValid: true, isServiceable: true, state: "OH" },
});
const type = "";
@ -118,7 +118,7 @@ describe("baseMixin.js", () => {
mixIn.methods.getZipCodeData(type, payload);
expect(mixIn.methods.dispatchStoreAction).toBeCalled();
expect(mixIn.methods.dispatchStoreActionWithLogging).toBeCalled();
});
});