mirror of https://github.com/zulip/zulip.git
node tests: Add 100% coverage for narrow_state.js.
This commit is contained in:
parent
16e03b644d
commit
3dc315a0a1
|
@ -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);
|
||||||
}());
|
}());
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue