mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 10:26:28 +00:00
tests: Unmock state_data.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
95153b3f0c
commit
e84bb9ff2c
@@ -6,7 +6,6 @@ const {$t} = require("./lib/i18n");
|
||||
const {mock_esm, set_global, zrequire} = require("./lib/namespace");
|
||||
const {run_test, noop} = require("./lib/test");
|
||||
const $ = require("./lib/zjquery");
|
||||
const {realm} = require("./lib/zpage_params");
|
||||
|
||||
set_global("navigator", {});
|
||||
|
||||
@@ -27,8 +26,11 @@ const channel = mock_esm("../src/channel");
|
||||
const compose_reply = zrequire("compose_reply");
|
||||
const message_lists = zrequire("message_lists");
|
||||
const text_field_edit = mock_esm("text-field-edit");
|
||||
const {set_realm} = zrequire("state_data");
|
||||
const {initialize_user_settings} = zrequire("user_settings");
|
||||
|
||||
const realm = {};
|
||||
set_realm(realm);
|
||||
initialize_user_settings({user_settings: {}});
|
||||
|
||||
const alice = {
|
||||
|
||||
Reference in New Issue
Block a user