changes added
This commit is contained in:
parent
67f6f76f78
commit
9c1aa8c89f
2 changed files with 2 additions and 6 deletions
|
|
@ -37,7 +37,7 @@ describe("vehicle.vue", () => {
|
|||
});
|
||||
|
||||
//Act
|
||||
await wrapper.vm.getCanSafeliteService();
|
||||
await wrapper.vm.getVehicleDetails();
|
||||
|
||||
//Assert
|
||||
expect(wrapper.findComponent({ ref: "AlertNoService" }).isVisible()).toBe(true);
|
||||
|
|
|
|||
|
|
@ -360,11 +360,7 @@ export default {
|
|||
this.imageUrl = result?.data.imageUrl;
|
||||
this.imageVifNumber = result?.data.imageVifNumber;
|
||||
this.imageVifColor = result?.data.imageVifColor;
|
||||
this.canSafeliteService = result?.data.canSafeliteService;
|
||||
this.getCanSafeliteService(this.canSafeliteService);
|
||||
},
|
||||
getCanSafeliteService(canSafeliteService) {
|
||||
this.displayNoServiceAlert = !canSafeliteService;
|
||||
this.displayNoServiceAlert = !result?.data.canSafeliteService;
|
||||
},
|
||||
resetAlert() {
|
||||
this.displayNoServiceAlert = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue