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:
Steve Howell
2020-03-22 17:56:20 +00:00
committed by Tim Abbott
parent f8913dc321
commit c86ccd8c6e

View File

@@ -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;