mock window.open

This commit is contained in:
Moriz Wahl 2022-11-24 19:35:59 +01:00
parent 15fdbe4fbd
commit 594943d2bd
4 changed files with 12 additions and 1 deletions

View File

@ -14,7 +14,6 @@ const openMock = jest.fn()
delete window.open
window.open = openMock
describe('donate.vue', () => {
let wrapper
let mocks

View File

@ -10,6 +10,10 @@ const assignMock = jest.fn()
delete window.location
window.location = { assign: assignMock }
const openMock = jest.fn()
delete window.open
window.open = openMock
describe('imprint.vue', () => {
let wrapper
let mocks

View File

@ -10,6 +10,10 @@ const assignMock = jest.fn()
delete window.location
window.location = { assign: assignMock }
const openMock = jest.fn()
delete window.open
window.open = openMock
describe('organization.vue', () => {
let wrapper
let mocks

View File

@ -10,6 +10,10 @@ const assignMock = jest.fn()
delete window.location
window.location = { assign: assignMock }
const openMock = jest.fn()
delete window.open
window.open = openMock
describe('support.vue', () => {
let wrapper
let mocks