Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

search tests: Fix swapped item_html arguments for mentions: case.

Tim Abbott09dea0ef5e20
diff --git a/web/tests/search.test.cjs b/web/tests/search.test.cjs
index af3cc187fc0..02c18bc88cc 100644
--- a/web/tests/search.test.cjs
+++ b/web/tests/search.test.cjs
@@ -152,7 +152,7 @@ run_test("initialize", ({override, override_rewire, mock_template}) => {
assert.equal(opts.item_html("zo")(search_suggestions[3]), expected_value);
expected_value = `<div class="search_list_item">\n <span class="pill-container"><div class="user-pill-container pill" tabindex=0>\n <span class="pill-label">mentions:\n </span>\n <div class="pill" data-user-id="3">\n <img class="pill-image" src="/avatar/3" />\n <div class="pill-image-border"></div>\n <span class="pill-label">\n <span class="pill-value">Zoe</span></span>\n <div class="exit">\n <a role="button" class="zulip-icon zulip-icon-close pill-close-button"></a>\n </div>\n </div>\n</div>\n</span>\n \n</div>\n`;
- assert.equal(opts.item_html(search_suggestions[4], "zo"), expected_value);
+ assert.equal(opts.item_html("zo")(search_suggestions[4]), expected_value);
/* Test sorter */
assert.equal(opts.sorter(search_suggestions.strings), search_suggestions.strings);