Add tests for stream_data.maybe_get_stream_name().

This commit is contained in:
Joshua Pan 2017-07-15 10:12:31 -07:00 committed by Tim Abbott
parent b7fe2fe7d8
commit f253d741dd
1 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,10 @@ var people = global.people;
assert(stream_data.in_home_view(social.stream_id)); assert(stream_data.in_home_view(social.stream_id));
assert(!stream_data.in_home_view(denmark.stream_id)); assert(!stream_data.in_home_view(denmark.stream_id));
assert.equal(stream_data.maybe_get_stream_name(), undefined);
assert.equal(stream_data.maybe_get_stream_name(social.stream_id), 'social');
assert.equal(stream_data.maybe_get_stream_name(42), undefined);
}()); }());
(function test_renames() { (function test_renames() {