From f8b3fe882279f86f31dae9e7b7178069a24ad2ac Mon Sep 17 00:00:00 2001 From: Katie Date: Tue, 5 Apr 2022 12:39:34 -0400 Subject: [PATCH] CSR-98 Rename variables --- src/constants/store-mutations.js | 2 +- src/store/index.js | 2 +- src/store/store.spec.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/constants/store-mutations.js b/src/constants/store-mutations.js index 834c4b648..69d7c558c 100644 --- a/src/constants/store-mutations.js +++ b/src/constants/store-mutations.js @@ -34,7 +34,7 @@ const storeMutations = { // OTHER MUTATIONS UPDATE_PAGE_DATA: "updatePageData", - SET_LOAD_FUNNEL_SESSION_INFO: "updateStateWithOrderInformation" + UPDATE_STATE_WITH_ORDER_INFORMATION: "updateStateWithOrderInformation" }; diff --git a/src/store/index.js b/src/store/index.js index a7b3420a9..b13dbcd67 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -393,7 +393,7 @@ export const actions = { referralCorrelationId: referralCorrelationId }, }).then((response) => { - context.commit(storeMutations.SET_LOAD_FUNNEL_SESSION_INFO, response.data); + context.commit(storeMutations.UPDATE_STATE_WITH_ORDER_INFORMATION, response.data); return response; }); } diff --git a/src/store/store.spec.js b/src/store/store.spec.js index 5c7e0c881..3e67bbf34 100644 --- a/src/store/store.spec.js +++ b/src/store/store.spec.js @@ -539,7 +539,7 @@ describe("Actions", () => { // Assert expect(response.data).toEqual({ referralNumber: 123 }); - expect(commit).toBeCalledWith(storeMutations.SET_LOAD_FUNNEL_SESSION_INFO, {"referralNumber": 123}); + expect(commit).toBeCalledWith(storeMutations.UPDATE_STATE_WITH_ORDER_INFORMATION, {"referralNumber": 123}); }); it("setReferralInformation, should call commit three times", () => {