mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
mock window.open
This commit is contained in:
parent
15fdbe4fbd
commit
594943d2bd
@ -14,7 +14,6 @@ const openMock = jest.fn()
|
||||
delete window.open
|
||||
window.open = openMock
|
||||
|
||||
|
||||
describe('donate.vue', () => {
|
||||
let wrapper
|
||||
let mocks
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user