unit test WIP

This commit is contained in:
Katie Kroell 2023-07-27 17:08:27 -04:00
parent d675378cdf
commit ca58d87083

View file

@ -23,7 +23,7 @@ import { getRandomString, getRandomInt } from '@/helpers/data-generation.js';
describe('coverageStatement.vue', () => {
describe("method arePagePrerequisitesValid...", () => {
test("Should return true for valid page requisites if vin exists", () => {
test.only("Should return true for valid page requisites if vin exists", () => {
// Arrange
const { wrapper } = setupMocks({});
useMainStore().order.vehicle.vin = getRandomString(5,20);
@ -519,6 +519,13 @@ describe('coverageStatement.vue', () => {
updateButtonText: jest.fn()
}
}
const loadingModal = {
render: () => {},
methods: {
showModal: jest.fn(),
hideModal: jest.fn()
}
}
const mountOptions = {
router: {
@ -545,6 +552,7 @@ describe('coverageStatement.vue', () => {
recalModal: true,
contentGroupModal: true,
alert: true,
'loadingModal': loadingModal
},
mocks: {
$router: {