node tests: Cover stream_data.canonicalized_name.

This commit is contained in:
cPhost 2017-12-08 12:17:38 -05:00 committed by Steve Howell
parent 0b9e678d4d
commit 63e8248933
1 changed files with 7 additions and 0 deletions

View File

@ -547,3 +547,10 @@ zrequire('marked', 'third/marked/lib/marked');
stream_data.render_stream_description(sub); stream_data.render_stream_description(sub);
assert.deepStrictEqual(sub.rendered_description, "rendered desc"); assert.deepStrictEqual(sub.rendered_description, "rendered desc");
}()); }());
(function test_canonicalized_name() {
assert.deepStrictEqual(
stream_data.canonicalized_name('Stream_Bar'),
"stream_bar"
);
}());