mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
page_params: Add narrow_stream to type.
This commit is contained in:
committed by
Anders Kaseorg
parent
ea697cdd93
commit
86fd0864a7
@@ -41,6 +41,7 @@ export const page_params: {
|
||||
max_icon_file_size_mib: number;
|
||||
max_logo_file_size_mib: number;
|
||||
muted_users: {id: number; timestamp: number}[];
|
||||
narrow_stream?: string;
|
||||
needs_tutorial: boolean;
|
||||
page_load_time: number;
|
||||
promote_sponsoring_zulip: boolean;
|
||||
|
||||
@@ -105,7 +105,7 @@ test_ui("validate_stream_message_address_info", ({mock_template}) => {
|
||||
assert.ok(!compose_validate.validate_stream_message_address_info("social"));
|
||||
assert.ok(user_not_subscribed_rendered);
|
||||
|
||||
page_params.narrow_stream = false;
|
||||
page_params.narrow_stream = "social";
|
||||
channel.post = (payload) => {
|
||||
assert.equal(payload.data.stream, "social");
|
||||
payload.data.subscribed = true;
|
||||
|
||||
Reference in New Issue
Block a user