changes added

This commit is contained in:
Sneha 2024-01-03 17:49:55 +05:30
parent 67f6f76f78
commit 9c1aa8c89f
2 changed files with 2 additions and 6 deletions

View file

@ -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);

View file

@ -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;