mirror of https://github.com/zulip/zulip.git
(tests) Remove jQuery stubs in search_suggestion.js.
(imported from commit a9b9bb86ed6aee96443cbfef5171f93dc9a0fa51)
This commit is contained in:
parent
3726b86a94
commit
b291037f5d
|
@ -11,16 +11,6 @@ function set_up_dependencies() {
|
|||
var _ = global._ = require('third/underscore/underscore.js');
|
||||
global.Handlebars = require('handlebars');
|
||||
|
||||
// We stub out most of jQuery, which is irrelevant to most of these tests.
|
||||
var $ = function () {};
|
||||
global.$ = $;
|
||||
$.each = function (it, cb) {
|
||||
var cb2 = function (a, b) { return cb(b,a); };
|
||||
return _.each(it, cb2);
|
||||
};
|
||||
$.map = _.map;
|
||||
$.grep = _.filter;
|
||||
|
||||
var actual_narrow = require('js/narrow.js');
|
||||
var search = require('js/search_suggestion.js');
|
||||
|
||||
|
|
Loading…
Reference in New Issue