mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
tests: Use make_realm to create type-correct realm objects.
Another step in the direction of improving node tests and using type-correct organic data as much as possible.
This commit is contained in:
@@ -3,6 +3,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 {mock_esm, zrequire, set_global} = require("./lib/namespace.cjs");
|
||||
const {run_test, noop} = require("./lib/test.cjs");
|
||||
const blueslip = require("./lib/zblueslip.cjs");
|
||||
@@ -26,7 +27,7 @@ const {MessageList} = zrequire("message_list");
|
||||
const {MessageListData} = zrequire("message_list_data");
|
||||
|
||||
set_current_user({});
|
||||
const realm = {};
|
||||
const realm = make_realm();
|
||||
set_realm(realm);
|
||||
initialize_user_settings({user_settings: {}});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user