fix all tests

This commit is contained in:
Moriz Wahl 2022-07-25 23:20:05 +02:00
parent b71b20ae81
commit 938f5ccdf9
3 changed files with 10 additions and 0 deletions

View File

@ -24,6 +24,9 @@ describe('SearchResults', () => {
beforeEach(() => {
mocks = {
$t: jest.fn(),
$env: {
CATEGORIES_ACTIVE: false,
},
}
getters = {
'auth/user': () => {

View File

@ -34,6 +34,9 @@ describe('post/_id.vue', () => {
}),
},
},
$env: {
CATEGORIES_ACTIVE: false,
},
}
store = new Vuex.Store({
getters: {

View File

@ -29,6 +29,10 @@ describe('Registration', () => {
query: {},
},
$env: {},
$toast: {
error: jest.fn(),
success: jest.fn(),
},
}
asyncData = false
isLoggedIn = false