Make copy to clipboard work with prefixes

The prefix was being included in the selection
copied.
This commit is contained in:
Tom Byers
2020-09-15 12:53:58 +01:00
parent c2e737b323
commit 956f5d4c3e
3 changed files with 52 additions and 9 deletions

View File

@@ -30,7 +30,7 @@ class DOMInterfaceMock {
class RangeMock extends DOMInterfaceMock {
constructor (jest) {
super(jest, { props: [], methods: ['selectNodeContents'] });
super(jest, { props: [], methods: ['selectNodeContents', 'setStart'] });
}
}