CSR-98 Cleanup
This commit is contained in:
parent
44c4fcfd6a
commit
d4579137ae
4 changed files with 3 additions and 26 deletions
|
|
@ -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",
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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}`;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue