Merge pull request #1942 from Human-Connection/fix_frontend_tests

fix: console warnings during frontend tests
This commit is contained in:
mattwr18 2019-10-18 16:28:14 +02:00 committed by GitHub
commit 86d8f833ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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(),