From 1fb34d29b1029c95c9e06d84ff3c63c170b4ad77 Mon Sep 17 00:00:00 2001 From: Chloe Herd Date: Fri, 17 Feb 2023 15:53:06 -0500 Subject: [PATCH] Updated test case data --- .../service-location/service-location.spec.js | 32 +++++++++++++++---- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/src/layouts/service-location/service-location.spec.js b/src/layouts/service-location/service-location.spec.js index 1b6fcd57f..904580d9d 100644 --- a/src/layouts/service-location/service-location.spec.js +++ b/src/layouts/service-location/service-location.spec.js @@ -24,11 +24,20 @@ jest.mock("@/store", () => ({ dispatch: jest.fn(), getters: { lineItems: { - supportingItems: [], + supportingItems: [ + { + description: null, + kitPrice: 0, + laborAmount: 0, + partNumber: "SUPPLIES-REPAIR", + partType: "REPAIR FEE", + sellingPrice: 7.99 + } + ], }, order: { serviceLocation: { - zipCode: "00000", + zipCode: "43235", }, }, payment: { @@ -40,18 +49,27 @@ jest.mock("@/store", () => ({ beforeEach(() => { store.getters = { lineItems: { - supportingItems: [], + supportingItems: [ + { + description: null, + kitPrice: 0, + laborAmount: 0, + partNumber: "SUPPLIES-REPAIR", + partType: "REPAIR FEE", + sellingPrice: 7.99 + } + ], }, order: { serviceLocation: { - zipCode: "00000", + zipCode: "43235", }, }, payment: { isInsurance: false, }, - } -}) + }; +}); describe("service-location.vue", () => { describe("arePagePrerequisitesValid", () => { @@ -70,7 +88,7 @@ describe("service-location.vue", () => { payment: { isInsurance: null, }, - } + }; serviceLocation.beforeRouteEnter.call( wrapper.vm,