-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(html): better url rewrite (#213)
* chore(html): better url rewrite * ci: enable puppeteer * test: update snapshot * fix: implementation * test: update snapshot
- Loading branch information
Showing
5 changed files
with
24 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,13 @@ test('remove localhost alike URLs', t => { | |
<meta charset="utf-8"> | ||
</head> | ||
<body> | ||
<script async="" src="/testfile" id="livereloadscript"></script> | ||
<script async="" src="http://localhost:35729/livereload.js?snipver=1" id="livereloadscript"></script> | ||
<script async="" src="http://127.0.0.1:35729/livereload.js?snipver=1" id="livereloadscript"></script> | ||
<script async="" src="http://0.0.0.1:35729/livereload.js?snipver=1" id="livereloadscript"></script> | ||
<a href="mailto:[email protected]">Email</a> | ||
<a href="ftp://example.com/file.txt">FTP Link</a> | ||
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Base64 Image"> | ||
</body> | ||
</html>`, | ||
headers: { 'content-type': 'text/html; charset=utf-8' } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,10 @@ Generated by [AVA](https://avajs.dev). | |
<meta charset="utf-8">␊ | ||
</head>␊ | ||
<body>␊ | ||
<script async="" src="https://kikobeats.com/testfile" id="livereloadscript"></script>␊ | ||
<a href="mailto:[email protected]">Email</a>␊ | ||
<a href="ftp://example.com/file.txt">FTP Link</a>␊ | ||
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Base64 Image">␊ | ||
</body>␊ | ||
</html>` | ||
|
||
|
@@ -35,7 +39,7 @@ Generated by [AVA](https://avajs.dev). | |
<!-- Search Engine -->␊ | ||
<meta name="description" content="a puppeter-like Node.js library for interacting with Headless production scenarios.">␊ | ||
<meta name="image" content="https://browserless.js.org/static/logo-banner.png">␊ | ||
<link rel="canonical" href="https://browserless.js.org">␊ | ||
<link rel="canonical" href="https://browserless.js.org/">␊ | ||
<title>browserless, a puppeter-like Node.js library for interacting with Headless production scenarios.</title>␊ | ||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">␊ | ||
␊ | ||
|
Binary file not shown.