mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
eslint: Fix unicorn/prefer-set-has.
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-set-has.md Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
de791b82b6
commit
b178fc6069
@@ -923,10 +923,10 @@ run_test("initialize", () => {
|
||||
initialize();
|
||||
assert(!stream_data.is_filtering_inactives());
|
||||
|
||||
const stream_names = stream_data.get_streams_for_admin().map((elem) => elem.name);
|
||||
assert(stream_names.includes("subscriptions"));
|
||||
assert(stream_names.includes("unsubscribed"));
|
||||
assert(stream_names.includes("never_subscribed"));
|
||||
const stream_names = new Set(stream_data.get_streams_for_admin().map((elem) => elem.name));
|
||||
assert(stream_names.has("subscriptions"));
|
||||
assert(stream_names.has("unsubscribed"));
|
||||
assert(stream_names.has("never_subscribed"));
|
||||
assert.equal(stream_data.get_notifications_stream(), "");
|
||||
|
||||
// Simulate a private stream the user isn't subscribed to
|
||||
|
||||
Reference in New Issue
Block a user