From ce87854ad9e2e7791c73d1aa719afc6d60721a59 Mon Sep 17 00:00:00 2001 From: brydon1 Date: Wed, 28 Jun 2023 16:43:16 -0400 Subject: [PATCH] Removed relative package references and needless type reference --- package-lock.json | 1 - package.json | 1 - src/helpers/data-generation.js | 3 ++- src/layouts/policy-vehicles/policy-vehicles.vue | 2 +- src/layouts/vehicle-lookup/vehicle-lookup.spec.js | 3 +-- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index b369e9f9..08d9d17a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,6 @@ "@testing-library/jest-dom": "5.16.5", "@testing-library/user-event": "14.4.3", "@testing-library/vue": "6.6.1", - "@types/node": "^20.3.2", "@vue/cli-plugin-babel": "^5.0.8", "@vue/cli-plugin-router": "~5.0.0", "@vue/cli-plugin-unit-jest": "~5.0.0", diff --git a/package.json b/package.json index 28bf1cc0..66144ba2 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,6 @@ "@testing-library/jest-dom": "5.16.5", "@testing-library/user-event": "14.4.3", "@testing-library/vue": "6.6.1", - "@types/node": "^20.3.2", "@vue/cli-plugin-babel": "^5.0.8", "@vue/cli-plugin-router": "~5.0.0", "@vue/cli-plugin-unit-jest": "~5.0.0", diff --git a/src/helpers/data-generation.js b/src/helpers/data-generation.js index 9bd607f5..f7019506 100644 --- a/src/helpers/data-generation.js +++ b/src/helpers/data-generation.js @@ -1,4 +1,5 @@ -import { randomUUID } from "node:crypto"; +//import { randomUUID } from "node:crypto"; +import { randomUUID } from "crypto"; export function getRandomString(minLength = 1, maxLength = 100) { const length = getRandomInt(minLength, maxLength + 1); diff --git a/src/layouts/policy-vehicles/policy-vehicles.vue b/src/layouts/policy-vehicles/policy-vehicles.vue index a7b24bd1..4a92c1c2 100644 --- a/src/layouts/policy-vehicles/policy-vehicles.vue +++ b/src/layouts/policy-vehicles/policy-vehicles.vue @@ -42,7 +42,7 @@ import { issPageValues } from "@/router/router-constants/issPage-values"; import { useMainStore } from '@/store'; import { errorMessages } from "@/constants/error-messages"; import { vehicleSelectionOptions } from "@/constants/vehicle-selection-options"; -import { endorsementOptions } from '../../constants/endorsement-options'; +import { endorsementOptions } from "@/constants/endorsement-options"; // DEFINE VALIDATION RULES defineRule("option-required", required(errorMessages.OPTION_REQUIRED)); diff --git a/src/layouts/vehicle-lookup/vehicle-lookup.spec.js b/src/layouts/vehicle-lookup/vehicle-lookup.spec.js index 085136f3..398ce254 100644 --- a/src/layouts/vehicle-lookup/vehicle-lookup.spec.js +++ b/src/layouts/vehicle-lookup/vehicle-lookup.spec.js @@ -1,12 +1,11 @@ /* eslint-env jest */ import { mount } from '@vue/test-utils'; import { navigationScenarios } from '@/router/router-constants/navigation-scenarios'; -import { issPageValues } from '@/router/router-constants/issPage-values'; import { queryStrings } from '@/constants/query-strings'; import { GaActions } from "@/constants/analytics"; import VehicleLookup from './vehicle-lookup.vue'; import {vinLookupMethodSelections} from '@/constants/vin-lookup-methods'; -import { useMainStore } from '../../store'; +import { useMainStore } from '@/store'; import { createTestingPinia } from '@pinia/testing'; import { mapStores } from "pinia";