Skip to content

Commit

Permalink
Add tests for stream_data.maybe_get_stream_name().
Browse files Browse the repository at this point in the history
  • Loading branch information
lonerz authored and timabbott committed Aug 1, 2017
1 parent b7fe2fe commit f253d74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend_tests/node_tests/stream_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ var people = global.people;

assert(stream_data.in_home_view(social.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() {
Expand Down

0 comments on commit f253d74

Please sign in to comment.