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.

zjquery: Allow $($x[0]) === $x.

Anders Kaseorgd0cd0876cf0c
diff --git a/web/tests/lib/zjquery_element.cjs b/web/tests/lib/zjquery_element.cjs
index 1e7f541da9e..5e68e7307da 100644
--- a/web/tests/lib/zjquery_element.cjs
+++ b/web/tests/lib/zjquery_element.cjs
@@ -24,7 +24,7 @@ function FakeElement(selector, opts) {
const $self = {
length: 1,
- [0]: {textContent: text},
+ [0]: {textContent: text, to_$: () => $self},
[Symbol.iterator]: Array.prototype.values,
addClass(class_name) {
classes.set(class_name, true);