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.

node tests: Use zjquery text() method for input_pill test.

Steve Howell70fff472c3b0
diff --git a/frontend_tests/node_tests/input_pill.js b/frontend_tests/node_tests/input_pill.js
index d10609f55f7..ba39998e754 100644
--- a/frontend_tests/node_tests/input_pill.js
+++ b/frontend_tests/node_tests/input_pill.js
@@ -312,7 +312,7 @@ run_test("comma", () => {
const COMMA = 188;
const key_handler = container.get_on_handler("keydown", ".input");
- pill_input.text = () => " yel";
+ pill_input.text(" yel");
key_handler({
keyCode: COMMA,
@@ -321,7 +321,7 @@ run_test("comma", () => {
assert.deepEqual(widget.items(), [items.blue, items.red]);
- pill_input.text = () => " yellow";
+ pill_input.text(" yellow");
key_handler({
keyCode: COMMA,