CSR-520 broken test fix
This commit is contained in:
parent
3466347eb7
commit
e1fa0df820
1 changed files with 4 additions and 0 deletions
|
|
@ -10,6 +10,9 @@ import { getMountOptions } from "@/helpers/unit-test-helper.js";
|
||||||
import { nextTick } from "vue";
|
import { nextTick } from "vue";
|
||||||
import store from "@/store";
|
import store from "@/store";
|
||||||
|
|
||||||
|
jest.mock('@/assets/img/loader.gif', () => 'loader.gif')
|
||||||
|
jest.mock('@/assets/img/windshield.png', () => 'windshield.png')
|
||||||
|
|
||||||
// Mock our module for promises.
|
// Mock our module for promises.
|
||||||
jest.mock("@/helpers/layout-helper.js", () => ({
|
jest.mock("@/helpers/layout-helper.js", () => ({
|
||||||
settleAllPromises: jest.fn(),
|
settleAllPromises: jest.fn(),
|
||||||
|
|
@ -378,6 +381,7 @@ describe("license-plate-lookup.vue", () => {
|
||||||
//Act
|
//Act
|
||||||
wrapper.vm.isCarIdDifferent = false;
|
wrapper.vm.isCarIdDifferent = false;
|
||||||
wrapper.vm.$router.navigateAfterSaveToHeritageFunnel = jest.fn();
|
wrapper.vm.$router.navigateAfterSaveToHeritageFunnel = jest.fn();
|
||||||
|
wrapper.vm.$refs.loadingModal.showModal = jest.fn();
|
||||||
wrapper.vm.getCmsContent = jest.fn().mockImplementation(() => {
|
wrapper.vm.getCmsContent = jest.fn().mockImplementation(() => {
|
||||||
return '';
|
return '';
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue