mirror of
https://github.com/zulip/zulip.git
synced 2025-10-29 02:53:52 +00:00
tests: Remove obsolete page_params test setup.
This test code has basically been dead since we started passing in `params` to `stream_data.initialize()`, and now it's more confusing than helpful.
This commit is contained in:
@@ -827,9 +827,6 @@ run_test('initialize', () => {
|
||||
assert(stream_names.includes('subscriptions'));
|
||||
assert(stream_names.includes('unsubscribed'));
|
||||
assert(stream_names.includes('never_subscribed'));
|
||||
assert(!page_params.subscriptions);
|
||||
assert(!page_params.unsubscribed);
|
||||
assert(!page_params.never_subscribed);
|
||||
assert.equal(page_params.notifications_stream, "");
|
||||
|
||||
// Simulate a private stream the user isn't subscribed to
|
||||
@@ -858,10 +855,6 @@ run_test('filter inactives', () => {
|
||||
stream_data.initialize(params);
|
||||
assert(!stream_data.is_filtering_inactives());
|
||||
|
||||
page_params.unsubscribed = [];
|
||||
page_params.never_subscribed = [];
|
||||
page_params.subscriptions = [];
|
||||
|
||||
_.times(30, function (i) {
|
||||
const name = 'random' + i.toString();
|
||||
const stream_id = 100 + i;
|
||||
|
||||
Reference in New Issue
Block a user