From 3a5b0841e42f2291533a21727375c610fadcf48e Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Thu, 12 Apr 2018 19:56:48 +0000 Subject: [PATCH] node tests: Remove minor cruft from bots_data.js. --- frontend_tests/node_tests/bot_data.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/frontend_tests/node_tests/bot_data.js b/frontend_tests/node_tests/bot_data.js index 9299e49280..d2072e37db 100644 --- a/frontend_tests/node_tests/bot_data.js +++ b/frontend_tests/node_tests/bot_data.js @@ -5,10 +5,7 @@ global.patch_builtin('_', patched_underscore); zrequire('people'); zrequire('bot_data'); -set_global('$', function (f) { - if (f) { - return f(); - } +set_global('$', function () { return {trigger: function () {}}; }); set_global('document', null);