CSR-98 Rename variables

This commit is contained in:
Katie 2022-04-05 12:39:34 -04:00
parent c230815000
commit f8b3fe8822
3 changed files with 3 additions and 3 deletions

View file

@ -34,7 +34,7 @@ const storeMutations = {
// OTHER MUTATIONS // OTHER MUTATIONS
UPDATE_PAGE_DATA: "updatePageData", UPDATE_PAGE_DATA: "updatePageData",
SET_LOAD_FUNNEL_SESSION_INFO: "updateStateWithOrderInformation" UPDATE_STATE_WITH_ORDER_INFORMATION: "updateStateWithOrderInformation"
}; };

View file

@ -393,7 +393,7 @@ export const actions = {
referralCorrelationId: referralCorrelationId referralCorrelationId: referralCorrelationId
}, },
}).then((response) => { }).then((response) => {
context.commit(storeMutations.SET_LOAD_FUNNEL_SESSION_INFO, response.data); context.commit(storeMutations.UPDATE_STATE_WITH_ORDER_INFORMATION, response.data);
return response; return response;
}); });
} }

View file

@ -539,7 +539,7 @@ describe("Actions", () => {
// Assert // Assert
expect(response.data).toEqual({ referralNumber: 123 }); 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", () => { it("setReferralInformation, should call commit three times", () => {