test: snapshot update, createRange mock

This commit is contained in:
xidedix
2021-03-12 13:52:47 +01:00
parent c22a75b3cd
commit 0370878bff
3 changed files with 41 additions and 19 deletions
+11
View File
@@ -25,3 +25,14 @@ describe('Tooltips.vue', () => {
// expect(wrapper.element).toMatchSnapshot()
// })
})
if (global.document) {
document.createRange = () => ({
setStart: () => {},
setEnd: () => {},
commonAncestorContainer: {
nodeName: 'BODY',
ownerDocument: document,
},
});
}