global.stub_out_jquery(); add_dependencies({ Handlebars: 'handlebars', hashchange: 'js/hashchange', muting: 'js/muting', narrow: 'js/narrow', stream_color: 'js/stream_color', stream_data: 'js/stream_data', 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 = $('