aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/completion_test.coffee6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/completion_test.coffee b/tests/completion_test.coffee
index ed56d0e9..813d3af3 100644
--- a/tests/completion_test.coffee
+++ b/tests/completion_test.coffee
@@ -47,15 +47,15 @@ context "history completer",
context "suggestions",
should "escape html in page titles", ->
- suggestion = new Suggestion(["queryterm"], "tab", "url", "title <span>")
+ suggestion = new Suggestion(["queryterm"], "tab", "url", "title <span>", returns(1))
assert.isTrue suggestion.generateHtml().indexOf("title &lt;span&gt;") >= 0
should "highlight query words", ->
- suggestion = new Suggestion(["ninja"], "tab", "url", "ninjawords")
+ suggestion = new Suggestion(["ninja"], "tab", "url", "ninjawords", returns(1))
assert.isTrue suggestion.generateHtml().indexOf("<span class='match'>ninja</span>words") >= 0
should "shorten urls", ->
- suggestion = new Suggestion(["queryterm"], "tab", "http://ninjawords.com", "ninjawords")
+ suggestion = new Suggestion(["queryterm"], "tab", "http://ninjawords.com", "ninjawords", returns(1))
assert.equal -1, suggestion.generateHtml().indexOf("http://ninjawords.com")
hours = (n) -> 1000 * 60 * 60 * n