node tests: Add 100% coverage for narrow_state.js.

This commit is contained in:
cPhost 2017-12-14 13:02:06 -05:00 committed by showell
parent 16e03b644d
commit 3dc315a0a1
2 changed files with 4 additions and 0 deletions

View File

@ -195,6 +195,9 @@ function set_filter(operators) {
['pm-with', 'test@foo.com'], ['pm-with', 'test@foo.com'],
]); ]);
assert.equal(narrow_state.topic(), undefined); assert.equal(narrow_state.topic(), undefined);
narrow_state.set_current_filter(undefined);
assert.equal(narrow_state.topic(), undefined);
}()); }());

View File

@ -40,6 +40,7 @@ enforce_fully_covered = {
'static/js/markdown.js', 'static/js/markdown.js',
'static/js/message_store.js', 'static/js/message_store.js',
'static/js/muting.js', 'static/js/muting.js',
'static/js/narrow_state.js',
'static/js/people.js', 'static/js/people.js',
'static/js/pm_conversations.js', 'static/js/pm_conversations.js',
'static/js/pm_list.js', 'static/js/pm_list.js',