node tests: add some asserts for stream_data.delete_sub.

(imported from commit 3428f32206105b240e230e1050e7c16cd9c3729c)
This commit is contained in:
Jessica McKellar
2013-08-28 10:22:15 -04:00
parent 2be988e6b7
commit b27f27f932

View File

@@ -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('social'));
assert(!stream_data.in_home_view('denmark')); 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() { (function test_get_and_set() {