aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_tests/utils_test.coffee3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit_tests/utils_test.coffee b/tests/unit_tests/utils_test.coffee
index 04cf34b6..cc1081dd 100644
--- a/tests/unit_tests/utils_test.coffee
+++ b/tests/unit_tests/utils_test.coffee
@@ -22,6 +22,9 @@ context "isUrl",
assert.isTrue Utils.isUrl "illinois.state.museum"
assert.isTrue Utils.isUrl "eqt5g4fuenphqinx.onion"
+ # Internal URLs.
+ assert.isTrue Utils.isUrl "moz-extension://c66906b4-3785-4a60-97bc-094a6366017e/pages/options.html"
+
should "reject invalid URLs", ->
assert.isFalse Utils.isUrl "a.x"
assert.isFalse Utils.isUrl "www-domain-tld"