CSR-779 - match mock data to promise data

This commit is contained in:
CarlNation 2022-09-15 13:37:34 -04:00
parent cafb8d898d
commit e7bc1f7ecc

View file

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