mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
node tests: add some asserts for stream_data.delete_sub.
(imported from commit 3428f32206105b240e230e1050e7c16cd9c3729c)
This commit is contained in:
@@ -49,6 +49,12 @@ var stream_data = require('js/stream_data.js');
|
||||
|
||||
assert(stream_data.in_home_view('social'));
|
||||
assert(!stream_data.in_home_view('denmark'));
|
||||
|
||||
// Deleting a subscription makes you unsubscribed from the perspective of
|
||||
// the client.
|
||||
// Deleting a subscription is case-insensitive.
|
||||
stream_data.delete_sub('SOCIAL');
|
||||
assert(!stream_data.is_subscribed('social'));
|
||||
}());
|
||||
|
||||
(function test_get_and_set() {
|
||||
|
||||
Reference in New Issue
Block a user