fix more tests

This commit is contained in:
Moriz Wahl 2022-07-25 23:04:12 +02:00
parent 5393c2aeaa
commit b71b20ae81
3 changed files with 9 additions and 0 deletions

View File

@ -47,6 +47,9 @@ describe('PostTeaser', () => {
data: { DeletePost: { id: 'deleted-post-id' } },
}),
},
$env: {
CATEGORIES_ACTIVE: false,
},
}
getters = {
'auth/isModerator': () => false,

View File

@ -18,6 +18,9 @@ describe('post/_id.vue', () => {
slug: 'my-post',
},
},
$env: {
CATEGORIES_ACTIVE: false,
},
}
})

View File

@ -72,6 +72,9 @@ describe('PostSlug', () => {
query: jest.fn().mockResolvedValue({ data: { PostEmotionsCountByEmotion: {} } }),
},
$scrollTo: jest.fn(),
$env: {
CATEGORIES_ACTIVE: false,
},
}
stubs = {
HcEditor: { render: () => {}, methods: { insertReply: jest.fn(() => null) } },