From 6e204f7ad217feb3b0332c0b6bb8945c7e52303e Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Fri, 6 Feb 2026 10:31:16 -0500 Subject: [PATCH] CASH-1790 add more unit tests --- jest.config.js | 6 +----- src/layouts/schedule/schedule.vue | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/jest.config.js b/jest.config.js index 7b59ea2c1..6c0addf5f 100644 --- a/jest.config.js +++ b/jest.config.js @@ -32,11 +32,7 @@ module.exports = { "!src/layouts/payment-pia-return/*.vue", // Temp test exclusion while in development "!src/layouts/insurance/*.vue", // Temp test exclusion while in development "!src/layouts/insurance-company/*.vue", // Temp test exclusion while in development - "!src/layouts/schedule/**/*.vue", // Temp test exclusion while in development "!src/digital-components/date-picker/**/*.vue", // Temp test exclusion while in development - - "!src/**/*-june-2025.vue", // Exclude these temporary files for CASH-845 project - "!src/layouts/insurance-company/insurance-company-question/*.vue", // Temp test exclusion while in development "!src/experiment-components/*.vue", // END @@ -44,7 +40,7 @@ module.exports = { testMatch: ["**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"], coverageThreshold: { global: { - statements: 64, + statements: 68, }, }, // Uncomment this to avoid the massive amount of warnings we are getting for onSubmit and onInvalidSubmit diff --git a/src/layouts/schedule/schedule.vue b/src/layouts/schedule/schedule.vue index 48424f085..e20c025fb 100644 --- a/src/layouts/schedule/schedule.vue +++ b/src/layouts/schedule/schedule.vue @@ -1326,8 +1326,8 @@ export default { if (isMobileSelected === undefined) { isMobileSelected = this.appointmentType === AppointmentTypeStrings.MOBILE; } - let storedDate = store.getters.order.schedule.date; - if (isMobileSelected) storedDate += "-mobile"; + let storedDate = store.getters.order.schedule?.date; + if (isMobileSelected && storedDate) storedDate += "-mobile"; return storedDate; }, getSelectedTimeSlotInfo() {