diff options
| author | Stephen Blott | 2014-12-28 17:05:49 +0000 |
|---|---|---|
| committer | Stephen Blott | 2014-12-28 17:05:49 +0000 |
| commit | da28e31c467ee2283a2e56baad764e73a8fc8b19 (patch) | |
| tree | 9af4b77b748223ce1e3d8d8eccf2a53f84a882ff /tests/unit_tests | |
| parent | b226510676e7229ae97d76187ffafda4979d8fe6 (diff) | |
| download | vimium-da28e31c467ee2283a2e56baad764e73a8fc8b19.tar.bz2 | |
Consistent treatment of search terms; fix tests.
Diffstat (limited to 'tests/unit_tests')
| -rw-r--r-- | tests/unit_tests/utils_test.coffee | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit_tests/utils_test.coffee b/tests/unit_tests/utils_test.coffee index 556f5b7a..88e9a15b 100644 --- a/tests/unit_tests/utils_test.coffee +++ b/tests/unit_tests/utils_test.coffee @@ -45,7 +45,8 @@ context "convertToUrl", should "convert non-URL terms into search queries", -> assert.equal "http://www.google.com/search?q=google", Utils.convertToUrl("google") - assert.equal "http://www.google.com/search?q=go%20ogle.com", Utils.convertToUrl("go ogle.com") + assert.equal "http://www.google.com/search?q=go+ogle.com", Utils.convertToUrl("go ogle.com") + assert.equal "http://www.google.com/search?q=%40twitter", Utils.convertToUrl("@twitter") context "hasChromePrefix", should "detect chrome prefixes of URLs", -> |
