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
|
//Act
|
||||||
await wrapper.vm.getCanSafeliteService();
|
await wrapper.vm.getVehicleDetails();
|
||||||
|
|
||||||
//Assert
|
//Assert
|
||||||
expect(wrapper.findComponent({ ref: "AlertNoService" }).isVisible()).toBe(true);
|
expect(wrapper.findComponent({ ref: "AlertNoService" }).isVisible()).toBe(true);
|
||||||
|
|
|
||||||
|
|
@ -360,11 +360,7 @@ export default {
|
||||||
this.imageUrl = result?.data.imageUrl;
|
this.imageUrl = result?.data.imageUrl;
|
||||||
this.imageVifNumber = result?.data.imageVifNumber;
|
this.imageVifNumber = result?.data.imageVifNumber;
|
||||||
this.imageVifColor = result?.data.imageVifColor;
|
this.imageVifColor = result?.data.imageVifColor;
|
||||||
this.canSafeliteService = result?.data.canSafeliteService;
|
this.displayNoServiceAlert = !result?.data.canSafeliteService;
|
||||||
this.getCanSafeliteService(this.canSafeliteService);
|
|
||||||
},
|
|
||||||
getCanSafeliteService(canSafeliteService) {
|
|
||||||
this.displayNoServiceAlert = !canSafeliteService;
|
|
||||||
},
|
},
|
||||||
resetAlert() {
|
resetAlert() {
|
||||||
this.displayNoServiceAlert = false;
|
this.displayNoServiceAlert = false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue