diff --git a/test/test.js b/test/test.js index 6995a5f..e385020 100644 --- a/test/test.js +++ b/test/test.js @@ -401,9 +401,10 @@ describe('paste-markdown', function () { it('pastes markdown with link labels that contains special characters in html', function () { // eslint-disable-next-line github/unescaped-html-literal const sentence = ` - foo bar foo&bar` - const plaintextSentence = 'foo bar foo&bar' - const markdownSentence = '[foo bar](https://www.abcxyz.org/) [foo&bar](https://example.com/?q=foo&bar=baz)' +
` + const plaintextSentence = 'foo&bar foo bar foo&bar' + const markdownSentence = + 'foo&bar [foo bar](https://www.abcxyz.org/) [foo&bar](https://example.com/?q=foo&bar=baz)' paste(textarea, {'text/html': sentence, 'text/plain': plaintextSentence}) assert.equal(textarea.value, markdownSentence)