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
41813eeab8
commit
15fdbe4fbd
@ -10,6 +10,11 @@ const assignMock = jest.fn()
|
||||
delete window.location
|
||||
window.location = { assign: assignMock }
|
||||
|
||||
const openMock = jest.fn()
|
||||
delete window.open
|
||||
window.open = openMock
|
||||
|
||||
|
||||
describe('donate.vue', () => {
|
||||
let wrapper
|
||||
let mocks
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user