INSR-8879: Fix failing tests
This commit is contained in:
parent
19c7d41b62
commit
029529b391
2 changed files with 4 additions and 3 deletions
|
|
@ -41,7 +41,8 @@ const mountOptions = {
|
|||
methods: {
|
||||
getCmsContent: jest.fn(),
|
||||
getFooterInfoBoxHeight: jest.fn(() => 80),
|
||||
getPageNameByQueryString: jest.fn(() => '')
|
||||
getPageNameByQueryString: jest.fn(() => ''),
|
||||
pushEventToGA: jest.fn()
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -486,11 +486,11 @@ export default {
|
|||
},
|
||||
logEvents() {
|
||||
const vehicleString = this.mainStore.order.vehicle.make + '_' + this.mainStore.order.vehicle.model + '_' + this.mainStore.order.vehicle.style;
|
||||
this.pushEventToGA("CAR SUBMISSION", this.mainStore.order.vehicle.year.toString(), vehicleString, true, null, 0);
|
||||
this.pushEventToGA("CAR SUBMISSION", this.mainStore.order.vehicle.year?.toString(), vehicleString, true, null, 0);
|
||||
|
||||
if (this.isWindshieldRepair) {
|
||||
this.pushEventToGA("damage", "selected", "repair", true, null, null);
|
||||
this.pushEventToGA("VehicleDamage", "Repair", this.mainStore.damage.numberOfChips.toString(), true, null, this.mainStore.damage.numberOfChips);
|
||||
this.pushEventToGA("VehicleDamage", "Repair", this.mainStore.damage.numberOfChips?.toString(), true, null, this.mainStore.damage.numberOfChips);
|
||||
} else {
|
||||
this.pushEventToGA("damage", "selected", "replace", true, null, null);
|
||||
this.selectedGlassToReplace().forEach((glass) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue