Temporary until estimate and vin pages exist

This commit is contained in:
FrankRua 2022-03-29 13:56:44 -04:00
parent 0194788c0c
commit b6b5b6696e
2 changed files with 8 additions and 4 deletions

View file

@ -45,9 +45,11 @@ export async function getPageToRouteExistingOrderTo(toRoute = {}, existingHerita
return 'vehicle-damage'
} else {
if (store.getters.vehicle.vin) {
return "vin-lookup";
return 'vehicle-damage';
//return "vin-lookup"; (uncomment)
} else {
return "estimate"
return 'vehicle-damage';
//return "estimate" (uncomment)
}
}

View file

@ -228,7 +228,8 @@ describe("getPageToRouteExistingOrderTo", () => {
const result = await getPageToRouteExistingOrderTo(toRoute, false);
//Assert
expect(result).toBe('vin-lookup');
//expect(result).toBe('vin-lookup');
expect(result).toBe('vehicle-damage');
});
test("getPageToRouteExistingOrderTo, should return estimate", async () => {
@ -283,7 +284,8 @@ describe("getPageToRouteExistingOrderTo", () => {
const result = await getPageToRouteExistingOrderTo(toRoute, false);
//Assert
expect(result).toBe('estimate');
//expect(result).toBe('estimate');
expect(result).toBe('vehicle-damage');
});
test("getPageToRouteExistingOrderTo, existing order, should return heritage", async () => {