mirror of https://github.com/zulip/zulip.git
node tests: Remove dead code in general.js.
This commit is contained in:
parent
910fc842e2
commit
d51ec7851e
|
@ -611,7 +611,6 @@ function jquery_elem() {
|
||||||
|
|
||||||
function make_jquery_helper() {
|
function make_jquery_helper() {
|
||||||
const stream_list_filter = jquery_elem();
|
const stream_list_filter = jquery_elem();
|
||||||
stream_list_filter.is = () => true;
|
|
||||||
stream_list_filter.val = () => '';
|
stream_list_filter.val = () => '';
|
||||||
|
|
||||||
const stream_filters = jquery_elem();
|
const stream_filters = jquery_elem();
|
||||||
|
@ -623,16 +622,10 @@ function make_jquery_helper() {
|
||||||
|
|
||||||
function fake_jquery(selector) {
|
function fake_jquery(selector) {
|
||||||
switch (selector) {
|
switch (selector) {
|
||||||
case '#stream_filters li.highlighted_stream':
|
|
||||||
return jquery_elem();
|
|
||||||
case '.stream-list-filter':
|
case '.stream-list-filter':
|
||||||
return stream_list_filter;
|
return stream_list_filter;
|
||||||
case '#stream_filters li.narrow-filter':
|
|
||||||
return jquery_elem();
|
|
||||||
case 'ul#stream_filters li':
|
case 'ul#stream_filters li':
|
||||||
return jquery_elem();
|
return jquery_elem();
|
||||||
case '.stream-filters-label':
|
|
||||||
return jquery_elem();
|
|
||||||
case '#stream_filters':
|
case '#stream_filters':
|
||||||
return stream_filters;
|
return stream_filters;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue