diff --git a/frontend_tests/node_tests/stream_list.js b/frontend_tests/node_tests/stream_list.js index 31ea7587b6..b9f2010136 100644 --- a/frontend_tests/node_tests/stream_list.js +++ b/frontend_tests/node_tests/stream_list.js @@ -1,50 +1,24 @@ -global.stub_out_jquery(); +set_global('$', global.make_zjquery()); + +set_global('templates', {}); add_dependencies({ - Handlebars: 'handlebars', colorspace: 'js/colorspace', hash_util: 'js/hash_util', - hashchange: 'js/hashchange', - muting: 'js/muting', narrow: 'js/narrow', stream_color: 'js/stream_color', stream_data: 'js/stream_data', stream_sort: 'js/stream_sort', - subs: 'js/subs', - templates: 'js/templates', unread: 'js/unread', util: 'js/util', }); var stream_list = require('js/stream_list.js'); - -var jsdom = require("jsdom"); -var window = jsdom.jsdom().defaultView; -global.$ = require('jquery')(window); -$.fn.expectOne = function () { - assert(this.length === 1); - return this; -}; - -global.compile_template('stream_sidebar_row'); -global.compile_template('stream_privacy'); - -function clear_filters() { - var stream_search_box = $(''); - var stream_filters = $('