mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
fix more tests
This commit is contained in:
parent
5393c2aeaa
commit
b71b20ae81
@ -47,6 +47,9 @@ describe('PostTeaser', () => {
|
|||||||
data: { DeletePost: { id: 'deleted-post-id' } },
|
data: { DeletePost: { id: 'deleted-post-id' } },
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
$env: {
|
||||||
|
CATEGORIES_ACTIVE: false,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
getters = {
|
getters = {
|
||||||
'auth/isModerator': () => false,
|
'auth/isModerator': () => false,
|
||||||
|
|||||||
@ -18,6 +18,9 @@ describe('post/_id.vue', () => {
|
|||||||
slug: 'my-post',
|
slug: 'my-post',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
$env: {
|
||||||
|
CATEGORIES_ACTIVE: false,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -72,6 +72,9 @@ describe('PostSlug', () => {
|
|||||||
query: jest.fn().mockResolvedValue({ data: { PostEmotionsCountByEmotion: {} } }),
|
query: jest.fn().mockResolvedValue({ data: { PostEmotionsCountByEmotion: {} } }),
|
||||||
},
|
},
|
||||||
$scrollTo: jest.fn(),
|
$scrollTo: jest.fn(),
|
||||||
|
$env: {
|
||||||
|
CATEGORIES_ACTIVE: false,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
stubs = {
|
stubs = {
|
||||||
HcEditor: { render: () => {}, methods: { insertReply: jest.fn(() => null) } },
|
HcEditor: { render: () => {}, methods: { insertReply: jest.fn(() => null) } },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user