diff --git a/webapp/components/PostTeaser/PostTeaser.spec.js b/webapp/components/PostTeaser/PostTeaser.spec.js index 7a37d710f..546c4581d 100644 --- a/webapp/components/PostTeaser/PostTeaser.spec.js +++ b/webapp/components/PostTeaser/PostTeaser.spec.js @@ -47,6 +47,9 @@ describe('PostTeaser', () => { data: { DeletePost: { id: 'deleted-post-id' } }, }), }, + $env: { + CATEGORIES_ACTIVE: false, + }, } getters = { 'auth/isModerator': () => false, diff --git a/webapp/pages/post/_id.spec.js b/webapp/pages/post/_id.spec.js index 7e6812002..cb97a1776 100644 --- a/webapp/pages/post/_id.spec.js +++ b/webapp/pages/post/_id.spec.js @@ -18,6 +18,9 @@ describe('post/_id.vue', () => { slug: 'my-post', }, }, + $env: { + CATEGORIES_ACTIVE: false, + }, } }) diff --git a/webapp/pages/post/_id/_slug/index.spec.js b/webapp/pages/post/_id/_slug/index.spec.js index 4289bb53d..4737386ef 100644 --- a/webapp/pages/post/_id/_slug/index.spec.js +++ b/webapp/pages/post/_id/_slug/index.spec.js @@ -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) } },