node tests: Get stream_sort.js to 100% node coverage.

This commit is contained in:
Joshua Pan 2017-06-03 12:18:03 -07:00 committed by showell
parent 9f9cb618c9
commit 0a56156017
1 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,11 @@ var stream_sort = require('js/stream_sort.js');
var stream_data = require('js/stream_data.js');
var with_overrides = global.with_overrides;
// Test no subscribed streams
(function test_no_subscribed_streams() {
assert.equal(stream_sort.sort_groups(''), undefined);
}());
stream_data.add_sub('scalene', {
subscribed: true,
name: 'scalene',