Fix vin-location-information test affected by text-link

This commit is contained in:
Johan Gunawan 2023-01-23 10:12:39 -05:00
parent 2fa12be359
commit ae4817bcf4

View file

@ -2,12 +2,23 @@
import { render } from '@testing-library/vue';
import userEvent from '@testing-library/user-event';
import '@testing-library/jest-dom';
import { issPageValues } from '@/router/router-constants/issPage-values';
import { queryStrings } from '@/constants/query-strings';
import { GaActions } from "@/constants/analytics";
import VinLocationInformationComponent from './vin-location-information.vue';
const mockText = Object.freeze({
HEADER: 'Mock Header',
BODY: 'Mock Body',
});
const mockRoute = {
query: {
issPage: issPageValues.VIN_LOOKUP,
},
};
const mockRouter = {
navigate: jest.fn(),
};
const mountOptions = {
global: {
@ -27,9 +38,22 @@ const mountOptions = {
return '';
}),
pushEventToGA: jest.fn()
},
computed: {
GaActions() {
return GaActions;
},
queryStrings() {
return queryStrings;
},
}
},
],
mocks: {
$route: mockRoute,
$router: mockRouter,
},
},
};