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("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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue