Update test with mock $18n.locale

Co-authored-by: @alina-beck <alina.beck@mail.com>
This commit is contained in:
mattwr18 2019-11-12 10:35:02 +01:00
parent 311f2fc912
commit cbab34e83c

View File

@ -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: {