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.

tests: Use typed helpers in bot_data.test.cjs.

Tim Abbott2a988a588aa6
diff --git a/web/tests/bot_data.test.cjs b/web/tests/bot_data.test.cjs
index 96649c4edac..433a65ce8f1 100644
--- a/web/tests/bot_data.test.cjs
+++ b/web/tests/bot_data.test.cjs
@@ -2,6 +2,7 @@
const assert = require("node:assert/strict");
+const {make_user} = require("./lib/example_user.cjs");
const {zrequire} = require("./lib/namespace.cjs");
const {run_test} = require("./lib/test.cjs");
@@ -13,17 +14,17 @@ const people = zrequire("people");
// in zerver/models/users.py - UserProfile Class or
// zever/openapi/zulip.yaml
-const me = {
+const me = make_user({
full_name: "Me Myself",
user_id: 2,
-};
+});
-const fred = {
+const fred = make_user({
full_name: "Fred Frederickson",
user_id: 3,
-};
+});
const bot_data_params = {
realm_bots: [