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.

alert_words_ui test: Excercise the template.

Steve Howell43207d37af5d
diff --git a/web/tests/alert_words_ui.test.cjs b/web/tests/alert_words_ui.test.cjs
index 96a325c2eec..870b7630219 100644
--- a/web/tests/alert_words_ui.test.cjs
+++ b/web/tests/alert_words_ui.test.cjs
@@ -31,8 +31,10 @@ run_test("rerender_alert_words_ui", ({mock_template}) => {
generic_sort_functions: noop,
});
- mock_template("settings/alert_word_settings_item.hbs", false, (args) => {
+ mock_template("settings/alert_word_settings_item.hbs", true, (args, html) => {
assert.ok(["foo", "bar"].includes(args.alert_word.word));
+ // do a super easy sanity check
+ assert.ok(html.includes("alert_word_listing"));
});
assert.equal(alert_words_ui.loaded, false);