CSR-98 Revert edit to navigation-helper
This commit is contained in:
parent
f8b3fe8822
commit
fc7cd2ebc1
2 changed files with 4 additions and 4 deletions
|
|
@ -43,10 +43,10 @@ export async function getPageToRouteExistingOrderTo(toRoute = {}, existingHerita
|
|||
return 'vehicle-damage'
|
||||
} else {
|
||||
if (store.getters.vehicle.vin) {
|
||||
return 'heritage';
|
||||
return 'vehicle-damage';
|
||||
//return "vin-lookup"; (uncomment)
|
||||
} else {
|
||||
return 'heritage';
|
||||
return 'vehicle-damage';
|
||||
//return "estimate" (uncomment)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -229,7 +229,7 @@ describe("getPageToRouteExistingOrderTo", () => {
|
|||
|
||||
//Assert
|
||||
//expect(result).toBe('vin-lookup');
|
||||
expect(result).toBe('heritage');
|
||||
expect(result).toBe('vehicle-damage');
|
||||
});
|
||||
|
||||
test("getPageToRouteExistingOrderTo, should return estimate", async () => {
|
||||
|
|
@ -285,7 +285,7 @@ describe("getPageToRouteExistingOrderTo", () => {
|
|||
|
||||
//Assert
|
||||
//expect(result).toBe('estimate');
|
||||
expect(result).toBe('heritage');
|
||||
expect(result).toBe('vehicle-damage');
|
||||
});
|
||||
|
||||
test("getPageToRouteExistingOrderTo, existing order, should return heritage", async () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue