From 4e09fe6cae35f76fed96267e994ecfd73c0b83f3 Mon Sep 17 00:00:00 2001 From: hiteshkumar87 Date: Fri, 23 Aug 2024 19:10:30 +0530 Subject: [PATCH] CSR-2185 estimate unit test case for external parameter --- src/layouts/estimate/estimate.spec.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/layouts/estimate/estimate.spec.js b/src/layouts/estimate/estimate.spec.js index e51d817a5..7a66a197c 100644 --- a/src/layouts/estimate/estimate.spec.js +++ b/src/layouts/estimate/estimate.spec.js @@ -215,9 +215,10 @@ describe("estimate.vue", () => { describe("estimate.vue", () => { test("should call forwardButtonAction if isExternalParameter is true and form is valid", async () => { - store.commit(storeMutations.UPDATE_IS_EXTERNAL_PARAMETER, true); - store.commit(storeMutations.UPDATE_EXTERNAL_PARAMETER_VIN_SELECTION, "decline"); - + store.getters = { + isExternalParameter: true, + externalParameterEstimate: { vinSelection: "decline" }, + }; // Set up the component const { wrapper } = setupMocks({});