aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit_tests/utils_test.coffee
diff options
context:
space:
mode:
authorStephen Blott2014-11-08 07:40:49 +0000
committerStephen Blott2014-11-08 07:40:49 +0000
commit3d647c9d062a84082d0337ac0b0004d31eb64969 (patch)
tree9ff193d27f26d931b06018e36662cde2faef2a91 /tests/unit_tests/utils_test.coffee
parent8e4e95c87d2ea06fcc0d9d354a180dfa1f31cdd2 (diff)
parent56565a021ae421d648a3b4180fdd255270245421 (diff)
downloadvimium-3d647c9d062a84082d0337ac0b0004d31eb64969.tar.bz2
Merge branch 'smblott-github-domains-only-domains'
Diffstat (limited to 'tests/unit_tests/utils_test.coffee')
-rw-r--r--tests/unit_tests/utils_test.coffee7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit_tests/utils_test.coffee b/tests/unit_tests/utils_test.coffee
index b2d656ab..556f5b7a 100644
--- a/tests/unit_tests/utils_test.coffee
+++ b/tests/unit_tests/utils_test.coffee
@@ -61,6 +61,13 @@ context "hasChromePrefix",
assert.isFalse Utils.hasChromePrefix "data"
assert.isFalse Utils.hasChromePrefix "data :foobar"
+context "isUrl",
+ should "identify URLs as URLs", ->
+ assert.isTrue Utils.isUrl "http://www.example.com/blah"
+
+ should "identify non-URLs and non-URLs", ->
+ assert.isFalse Utils.isUrl "http://www.example.com/ blah"
+
context "Function currying",
should "Curry correctly", ->
foo = (a, b) -> "#{a},#{b}"