Surprise they're strings
This commit is contained in:
parent
f87408bac2
commit
c1cf5d1f02
7 changed files with 14 additions and 14 deletions
|
|
@ -74,10 +74,10 @@ function setupMocks({
|
|||
mixins: {
|
||||
getSettingValue: jest.fn((settingName) => {
|
||||
if (settingName === experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED) {
|
||||
return true;
|
||||
return 'true';
|
||||
}
|
||||
|
||||
return false;
|
||||
return 'false';
|
||||
})
|
||||
}
|
||||
})
|
||||
|
|
@ -433,10 +433,10 @@ describe('address-lookup.vue', () => {
|
|||
wrapper.vm.navigateForwardWithSingleCarMatch = jest.fn();
|
||||
wrapper.vm.getSettingValue = jest.fn((settingName) => {
|
||||
if (settingName === experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED) {
|
||||
return true;
|
||||
return 'true';
|
||||
}
|
||||
|
||||
return false;
|
||||
return 'false';
|
||||
});
|
||||
|
||||
useMainStore().order.vehicle.carId = 'C0000';
|
||||
|
|
@ -475,10 +475,10 @@ describe('address-lookup.vue', () => {
|
|||
wrapper.vm.navigateForwardWithSingleCarMatch = jest.fn();
|
||||
wrapper.vm.getSettingValue = jest.fn((settingName) => {
|
||||
if (settingName === experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED) {
|
||||
return true;
|
||||
return 'true';
|
||||
}
|
||||
|
||||
return false;
|
||||
return 'false';
|
||||
});
|
||||
|
||||
useMainStore().order.vehicle.carId = 'CARID3';
|
||||
|
|
|
|||
|
|
@ -345,7 +345,7 @@ export default {
|
|||
{ [routerParams.DISPLAY_VEHICLE_CHANGE_ALERT]: true }
|
||||
);
|
||||
} else if (matchingCars.length === 1) {
|
||||
const ymmsBailoutEnabled = this.getSettingValue(experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED);
|
||||
const ymmsBailoutEnabled = this.getSettingValue(experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED) === 'true';
|
||||
if (ymmsBailoutEnabled && this.mainStore.order.vehicle.vinRequired) {
|
||||
this.mainStore.setBailout(bailoutMessage.YMMNotFound());
|
||||
return this.$router.navigate(
|
||||
|
|
|
|||
|
|
@ -108,10 +108,10 @@ function setupMocks({
|
|||
}),
|
||||
getSettingValue: jest.fn((settingName) => {
|
||||
if (settingName === experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED) {
|
||||
return true;
|
||||
return 'true';
|
||||
}
|
||||
|
||||
return false;
|
||||
return 'false';
|
||||
}),
|
||||
},
|
||||
computed: {
|
||||
|
|
|
|||
|
|
@ -257,7 +257,7 @@ export default {
|
|||
false
|
||||
);
|
||||
|
||||
const ymmsBailoutEnabled = this.getSettingValue(experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED);
|
||||
const ymmsBailoutEnabled = this.getSettingValue(experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED) === 'true';
|
||||
if (ymmsBailoutEnabled && this.mainStore.order.vehicle.vinRequired) {
|
||||
this.mainStore.setBailout(bailoutMessage.YMMNotFound());
|
||||
return this.$router.navigate(
|
||||
|
|
|
|||
|
|
@ -305,7 +305,7 @@ export default {
|
|||
}
|
||||
});
|
||||
|
||||
const ymmsBailoutEnabled = this.getSettingValue(experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED);
|
||||
const ymmsBailoutEnabled = this.getSettingValue(experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED) === 'true';
|
||||
if (ymmsBailoutEnabled && this.mainStore.order.vehicle.vinRequired) {
|
||||
this.mainStore.setBailout(bailoutMessage.YMMNotFound());
|
||||
return this.$router.navigate(
|
||||
|
|
|
|||
|
|
@ -176,10 +176,10 @@ const mountOptions = {
|
|||
pushEventToGA: jest.fn(),
|
||||
getSettingValue: jest.fn((settingName) => {
|
||||
if (settingName === experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED) {
|
||||
return true;
|
||||
return 'true';
|
||||
}
|
||||
|
||||
return false;
|
||||
return 'false';
|
||||
})
|
||||
},
|
||||
computed: {
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ export default {
|
|||
this.$refs.siteFooter.enableForwardAction();
|
||||
showIssLoadingModal(true);
|
||||
|
||||
const ymmsBailoutEnabled = this.getSettingValue(experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED);
|
||||
const ymmsBailoutEnabled = this.getSettingValue(experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED) === 'true';
|
||||
if (ymmsBailoutEnabled && this.mainStore.order.vehicle.vinRequired) {
|
||||
this.mainStore.setBailout(bailoutMessage.YMMNotFound());
|
||||
return this.$router.navigate(
|
||||
|
|
|
|||
Loading…
Reference in a new issue