mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge pull request #5711 from Ocelot-Social-Community/clean-up-webapp-unit-tests
fix(webapp): clean up webapp unit tests
This commit is contained in:
commit
300dd24151
@ -10,6 +10,10 @@ const assignMock = jest.fn()
|
|||||||
delete window.location
|
delete window.location
|
||||||
window.location = { assign: assignMock }
|
window.location = { assign: assignMock }
|
||||||
|
|
||||||
|
const openMock = jest.fn()
|
||||||
|
delete window.open
|
||||||
|
window.open = openMock
|
||||||
|
|
||||||
describe('donate.vue', () => {
|
describe('donate.vue', () => {
|
||||||
let wrapper
|
let wrapper
|
||||||
let mocks
|
let mocks
|
||||||
|
|||||||
@ -10,6 +10,10 @@ const assignMock = jest.fn()
|
|||||||
delete window.location
|
delete window.location
|
||||||
window.location = { assign: assignMock }
|
window.location = { assign: assignMock }
|
||||||
|
|
||||||
|
const openMock = jest.fn()
|
||||||
|
delete window.open
|
||||||
|
window.open = openMock
|
||||||
|
|
||||||
describe('imprint.vue', () => {
|
describe('imprint.vue', () => {
|
||||||
let wrapper
|
let wrapper
|
||||||
let mocks
|
let mocks
|
||||||
|
|||||||
@ -10,6 +10,10 @@ const assignMock = jest.fn()
|
|||||||
delete window.location
|
delete window.location
|
||||||
window.location = { assign: assignMock }
|
window.location = { assign: assignMock }
|
||||||
|
|
||||||
|
const openMock = jest.fn()
|
||||||
|
delete window.open
|
||||||
|
window.open = openMock
|
||||||
|
|
||||||
describe('organization.vue', () => {
|
describe('organization.vue', () => {
|
||||||
let wrapper
|
let wrapper
|
||||||
let mocks
|
let mocks
|
||||||
|
|||||||
@ -10,6 +10,10 @@ const assignMock = jest.fn()
|
|||||||
delete window.location
|
delete window.location
|
||||||
window.location = { assign: assignMock }
|
window.location = { assign: assignMock }
|
||||||
|
|
||||||
|
const openMock = jest.fn()
|
||||||
|
delete window.open
|
||||||
|
window.open = openMock
|
||||||
|
|
||||||
describe('support.vue', () => {
|
describe('support.vue', () => {
|
||||||
let wrapper
|
let wrapper
|
||||||
let mocks
|
let mocks
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user