Test fix
This commit is contained in:
parent
5ff14add7b
commit
e4d98521d8
1 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue