mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Update test with mock $18n.locale
Co-authored-by: @alina-beck <alina.beck@mail.com>
This commit is contained in:
parent
311f2fc912
commit
cbab34e83c
@ -62,6 +62,9 @@ describe('PostIndex', () => {
|
||||
truncate: a => a,
|
||||
removeLinks: jest.fn(),
|
||||
},
|
||||
$i18n: {
|
||||
locale: () => 'de',
|
||||
},
|
||||
// If you are mocking router, than don't use VueRouter with localVue: https://vue-test-utils.vuejs.org/guides/using-with-vue-router.html
|
||||
$router: {
|
||||
history: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user