From 453b8e630a8efdefbd6c35a75df5a139ca979424 Mon Sep 17 00:00:00 2001 From: Josh Dassinger Date: Mon, 24 Jun 2024 13:57:33 -0500 Subject: [PATCH] SSR-1373 Fix unit tests --- .../license-plate-lookup.spec.js | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/src/layouts/license-plate-lookup/license-plate-lookup.spec.js b/src/layouts/license-plate-lookup/license-plate-lookup.spec.js index e71eaecf..f1f784a0 100644 --- a/src/layouts/license-plate-lookup/license-plate-lookup.spec.js +++ b/src/layouts/license-plate-lookup/license-plate-lookup.spec.js @@ -28,8 +28,6 @@ function setupMocks({ isZipServiceable = true, lookupVinByPlateResponse, partsOrQuestions = [], - vehicle = {}, - vin = null, carId = 'C0000', vinLookupResponseError = null, route = null @@ -47,7 +45,8 @@ function setupMocks({ vehicle: { carId: 'CARID' } - } + }, + error: vinLookupResponseError })); useMainStore().getPartsOrQuestions = jest.fn().mockImplementation(() => Promise.resolve({ @@ -78,19 +77,7 @@ function setupMocks({ }) ); - const apiResponses = { - serviceZipValidationResponse: { - isValid: isZipValid, - isServiceable: isZipServiceable - }, - vinLookupResponse: { - vin, - vehicle, - error: vinLookupResponseError - } - }; - - settleAllPromises.mockImplementation(() => apiResponses); + settleAllPromises.mockImplementation(() => Promise.resolve({})); wrapper.vm.getCmsContent = jest.fn().mockImplementation(() => ''); wrapper.vm.setCmsContent = jest.fn();