add $route mock to Comment and CommentList spec

This commit is contained in:
Alina Beck 2019-10-15 16:07:09 +03:00
parent 202da2a67c
commit 2090e3939b
2 changed files with 6 additions and 0 deletions

View File

@ -32,6 +32,9 @@ describe('Comment.vue', () => {
truncate: a => a,
removeHtml: a => a,
},
$route: {
hash: '',
},
$scrollTo: jest.fn(),
$apollo: {
mutate: jest.fn().mockResolvedValue({

View File

@ -42,6 +42,9 @@ describe('CommentList.vue', () => {
truncate: a => a,
removeHtml: a => a,
},
$route: {
hash: '',
},
$scrollTo: jest.fn(),
$apollo: {
queries: {