diff --git a/src/global-methods.js b/src/global-methods.js index 8efd163aa..f0675c02d 100644 --- a/src/global-methods.js +++ b/src/global-methods.js @@ -5,14 +5,8 @@ import httpStatusCodes from "http-status-codes"; export default { callHttpClient({ method, endpoint, payload }) { return new Promise((resolve, reject) => { - // TODO CSR-98 TEMP FOR TESTING - var apiGatewayUrl = applicationConfig.CONSUMER_APIGATEWAY_URL; + const apiGatewayUrl = applicationConfig.CONSUMER_APIGATEWAY_URL; - if (endpoint.includes("order")) { - apiGatewayUrl = "https://localhost:44346"; - } - - // const apiGatewayUrl = applicationConfig.CONSUMER_APIGATEWAY_URL; const payloadAndAnalyticsData = Object.assign({}, payload, { AppName: "FixMyGlass", }); diff --git a/src/helpers/heritage-integration-helper.js b/src/helpers/heritage-integration-helper.js index 14dacb8eb..0147c25e5 100644 --- a/src/helpers/heritage-integration-helper.js +++ b/src/helpers/heritage-integration-helper.js @@ -264,8 +264,6 @@ function setConceptCookieProperties(properties) { Removes concept cookie from browser. */ function deleteConceptCookie() { - // If this cookie is ever created from the concept funnel, will need to add another - // line with the path=/fmg/ document.cookie = `${cookieNames.CONCEPT_SESSION_INFO}=; Max-Age=0; path=/; domain=${location.hostname}`; } diff --git a/src/helpers/unit-test-helper.js b/src/helpers/unit-test-helper.js index c6c766956..00fa5f675 100644 --- a/src/helpers/unit-test-helper.js +++ b/src/helpers/unit-test-helper.js @@ -11,20 +11,6 @@ export function getMountOptions(mockData) { //this is mocking if you use the mixin directly(baseMixin.methods.dispatchNonBlockingStoreAction) vs this.dispatchNonBlockingStoreAction setupBaseMixinDispatchNonBlockingStoreAction(mockData); - // if (mockData.actionList !== undefined) { - // baseMixin.methods.dispatchNonBlockingStoreAction = jest.fn(); - // baseMixin.methods.dispatchNonBlockingStoreAction.mockImplementation((actionName) => { - // let actionFilterResult = mockData.actionList.filter( - // (x) => x.actionName == actionName - // ); - - // if (actionFilterResult.length > 0 && actionFilterResult.length === 1) { - // return Promise.resolve({ - // data: actionFilterResult[0].data, - // }); - // } - // }); - // } mocks.dispatchNonBlockingStoreAction = jest.fn(); mocks.dispatchNonBlockingStoreAction.mockImplementation((actionName) => { diff --git a/src/layouts/vehicle-parts/vehicle-parts.spec.js b/src/layouts/vehicle-parts/vehicle-parts.spec.js index 428fe8a3b..6613fe6ad 100644 --- a/src/layouts/vehicle-parts/vehicle-parts.spec.js +++ b/src/layouts/vehicle-parts/vehicle-parts.spec.js @@ -211,7 +211,6 @@ describe("vehicle-parts.vue", () => { }, } }); - console.info(store.getters.damage.isRepair) //Act vehicleParts.beforeRouteEnter.call( @@ -223,9 +222,9 @@ describe("vehicle-parts.vue", () => { let arePagePrerequisitesValid = wrapper.vm.arePagePrerequisitesValid(); await nextTick(); - console.log(arePagePrerequisitesValid) + //Assert - // expect(arePagePrerequisitesValid).toBe(true); + expect(arePagePrerequisitesValid).toBe(true); }); test("Initial data, should populate this.glassParts", async () => {