Skip to content

Commit 9b4ea7a

Browse files
committed
add an invalid url test
* this test should not pass; it's related to implementation of `std.Uri` though.
1 parent 26c2b25 commit 9b4ea7a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tests/url/url.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,8 @@
7676
testing.expectEqual("", sk.hostname);
7777
testing.expectEqual("sveltekit-internal://", sk.href);
7878
</script>
79+
80+
<script id=invalidUrl>
81+
let u = new URL("://foo.bar/path?query#fragment");
82+
testing.expectEqual(":", u.protocol);
83+
</script>

0 commit comments

Comments
 (0)