mirror of https://github.com/zulip/zulip.git
node tests: Cover stream_data.canonicalized_name.
This commit is contained in:
parent
0b9e678d4d
commit
63e8248933
|
@ -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"
|
||||||
|
);
|
||||||
|
}());
|
||||||
|
|
Loading…
Reference in New Issue