diff --git a/webapp/components/Comment/Comment.spec.js b/webapp/components/Comment/Comment.spec.js index 59e3f6c5a..31ce8a40e 100644 --- a/webapp/components/Comment/Comment.spec.js +++ b/webapp/components/Comment/Comment.spec.js @@ -32,6 +32,9 @@ describe('Comment.vue', () => { truncate: a => a, removeHtml: a => a, }, + $route: { + hash: '', + }, $scrollTo: jest.fn(), $apollo: { mutate: jest.fn().mockResolvedValue({ diff --git a/webapp/components/CommentList/CommentList.spec.js b/webapp/components/CommentList/CommentList.spec.js index 3287b7cd4..16b284134 100644 --- a/webapp/components/CommentList/CommentList.spec.js +++ b/webapp/components/CommentList/CommentList.spec.js @@ -42,6 +42,9 @@ describe('CommentList.vue', () => { truncate: a => a, removeHtml: a => a, }, + $route: { + hash: '', + }, $scrollTo: jest.fn(), $apollo: { queries: {