Merge remote-tracking branch 'origin/feature/CSR-99' into feature/CSR-99

This commit is contained in:
FrankRua 2022-03-29 13:56:51 -04:00
commit d8d6d9dd07
3 changed files with 1 additions and 7 deletions

View file

@ -62,8 +62,6 @@ export async function getPageToRouteExistingOrderTo(toRoute = {}, existingHerita
export async function navigateToHeritageFunnel() {
// Create the order (or save existing order) when navigating to Heritage Funnel.
// console.log(exports)
// await self.saveOrder();
await saveOrder();
router.navigateToExternalUrl(

View file

@ -10,7 +10,6 @@ import baseMixin from "@/mixins/base-mixin";
*/
export async function loadOrderIfPresent() {
console.log("attempting to load referral....");
// const conceptCookie = self.getConceptCookie();
const conceptCookie = getConceptCookie();
console.log(conceptCookie)

View file

@ -46,9 +46,6 @@ describe("loadOrderIfPresent", () => {
// Assert
expect(cookieHelper.getConceptCookie).toHaveBeenCalled();
expect(mocks.baseMixin.methods.dispatchNonBlockingStoreAction).toHaveBeenCalledWith(storeActions.RESET_STATE);
// store.dispatch.mockRestore();
});
test("Concept cookie is null => store is unchanged", () => {
@ -166,7 +163,7 @@ describe("saveOrder", () => {
// Act
await saveOrder();
// Assert
expect(cookieHelper.getConceptCookie().DidHeritageFunnelUpdateLast).toEqual(false);
});