Skip to content

Commit

Permalink
Test: add external link with and without data-instant
Browse files Browse the repository at this point in the history
  • Loading branch information
dieulot committed Mar 9, 2023
1 parent 5983242 commit 918fe9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ async function requestListener(req, res) {
content += makeAnchorElement('Manually blacklisted link', `<a href="/${page}?${getRandomId()}" data-no-instant>`)
content += makeAnchorElement('Non-whitelisted link', `<a href="/${page}?${getRandomId()}">`)
content += makeAnchorElement('Query string', `<a href="/${page}?${getRandomId()}">`)
content += makeAnchorElement('External link', `<a href="https://www.google.com/" ${dataInstantAttribute}>`)
content += makeAnchorElement('External link', `<a href="https://www.google.com/">`)
content += makeAnchorElement('External link data-instant', `<a href="https://www.google.com/" data-instant>`)
content += makeAnchorElement('&lt;a&gt; without <code>href</code>', `<a>`)
content += makeAnchorElement('file: link', `<a href="file:///C:/">`)

Expand Down

0 comments on commit 918fe9b

Please sign in to comment.