unit test WIP
This commit is contained in:
parent
d675378cdf
commit
ca58d87083
1 changed files with 9 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ import { getRandomString, getRandomInt } from '@/helpers/data-generation.js';
|
||||||
|
|
||||||
describe('coverageStatement.vue', () => {
|
describe('coverageStatement.vue', () => {
|
||||||
describe("method arePagePrerequisitesValid...", () => {
|
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
|
// Arrange
|
||||||
const { wrapper } = setupMocks({});
|
const { wrapper } = setupMocks({});
|
||||||
useMainStore().order.vehicle.vin = getRandomString(5,20);
|
useMainStore().order.vehicle.vin = getRandomString(5,20);
|
||||||
|
|
@ -519,6 +519,13 @@ describe('coverageStatement.vue', () => {
|
||||||
updateButtonText: jest.fn()
|
updateButtonText: jest.fn()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const loadingModal = {
|
||||||
|
render: () => {},
|
||||||
|
methods: {
|
||||||
|
showModal: jest.fn(),
|
||||||
|
hideModal: jest.fn()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const mountOptions = {
|
const mountOptions = {
|
||||||
router: {
|
router: {
|
||||||
|
|
@ -545,6 +552,7 @@ describe('coverageStatement.vue', () => {
|
||||||
recalModal: true,
|
recalModal: true,
|
||||||
contentGroupModal: true,
|
contentGroupModal: true,
|
||||||
alert: true,
|
alert: true,
|
||||||
|
'loadingModal': loadingModal
|
||||||
},
|
},
|
||||||
mocks: {
|
mocks: {
|
||||||
$router: {
|
$router: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue