From 63e82489330c676d6467ba957ba4b9037196abe3 Mon Sep 17 00:00:00 2001 From: cPhost Date: Fri, 8 Dec 2017 12:17:38 -0500 Subject: [PATCH] node tests: Cover stream_data.canonicalized_name. --- frontend_tests/node_tests/stream_data.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend_tests/node_tests/stream_data.js b/frontend_tests/node_tests/stream_data.js index 2404287d20..cb57b5717f 100644 --- a/frontend_tests/node_tests/stream_data.js +++ b/frontend_tests/node_tests/stream_data.js @@ -547,3 +547,10 @@ zrequire('marked', 'third/marked/lib/marked'); stream_data.render_stream_description(sub); assert.deepStrictEqual(sub.rendered_description, "rendered desc"); }()); + +(function test_canonicalized_name() { + assert.deepStrictEqual( + stream_data.canonicalized_name('Stream_Bar'), + "stream_bar" + ); +}());