Merge pull request #318 from Safelite/feature/CSR-98
CSR-98 Rename variables
This commit is contained in:
commit
ce8f484570
3 changed files with 3 additions and 3 deletions
|
|
@ -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"
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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", () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue