Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
tests: Use typed helpers in popover_menus_data.test.cjs.
Tim Abbotta485288869d3
diff --git a/web/tests/popover_menus_data.test.cjs b/web/tests/popover_menus_data.test.cjsindex c1d315b452e..4eea864364c 100644--- a/web/tests/popover_menus_data.test.cjs+++ b/web/tests/popover_menus_data.test.cjs@@ -4,6 +4,7 @@ const assert = require("node:assert/strict");const {make_user_group} = require("./lib/example_group.cjs");const {make_realm} = require("./lib/example_realm.cjs");+const {make_user} = require("./lib/example_user.cjs");const {mock_esm, zrequire} = require("./lib/namespace.cjs");const {run_test} = require("./lib/test.cjs");const $ = require("./lib/zjquery.cjs");@@ -74,29 +75,23 @@ const realm = make_realm();set_realm(realm);// Define test users-const mike = {+const mike = make_user({user_id: 1000,full_name: "Test Mike",email: "[email protected]",- is_admin: false,- is_guest: false,-};+});-const bob = {+const bob = make_user({user_id: 2000,full_name: "Test Bob",email: "[email protected]",- is_admin: false,- is_guest: false,-};+});-const me = {+const me = make_user({user_id: 999,full_name: "Test Myself",email: "[email protected]",- is_admin: false,- is_guest: false,-};+});const everyone = make_user_group({name: "role:everyone",