fix: console warnings during frontend tests

This commit is contained in:
roschaefer 2019-10-18 00:21:43 +02:00
parent 227239cc8b
commit 25f2fc358d

View File

@ -32,6 +32,9 @@ describe('PostSlug', () => {
truncate: a => a,
},
// If you are mocking the router, then don't use VueRouter with localVue: https://vue-test-utils.vuejs.org/guides/using-with-vue-router.html
$route: {
hash: '',
},
$router: {
history: {
push: jest.fn(),