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: {
|
methods: {
|
||||||
getCmsContent: jest.fn(),
|
getCmsContent: jest.fn(),
|
||||||
getFooterInfoBoxHeight: jest.fn(() => 80),
|
getFooterInfoBoxHeight: jest.fn(() => 80),
|
||||||
getPageNameByQueryString: jest.fn(() => '')
|
getPageNameByQueryString: jest.fn(() => ''),
|
||||||
|
pushEventToGA: jest.fn()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -486,11 +486,11 @@ export default {
|
||||||
},
|
},
|
||||||
logEvents() {
|
logEvents() {
|
||||||
const vehicleString = this.mainStore.order.vehicle.make + '_' + this.mainStore.order.vehicle.model + '_' + this.mainStore.order.vehicle.style;
|
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) {
|
if (this.isWindshieldRepair) {
|
||||||
this.pushEventToGA("damage", "selected", "repair", true, null, null);
|
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 {
|
} else {
|
||||||
this.pushEventToGA("damage", "selected", "replace", true, null, null);
|
this.pushEventToGA("damage", "selected", "replace", true, null, null);
|
||||||
this.selectedGlassToReplace().forEach((glass) => {
|
this.selectedGlassToReplace().forEach((glass) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue