Use zrequire in node_tests/pm_list.js.

This commit is contained in:
Steve Howell 2017-08-09 12:42:26 -04:00 committed by Tim Abbott
parent d6b618e2eb
commit 890794ac8f
1 changed files with 7 additions and 12 deletions

View File

@ -1,14 +1,5 @@
set_global('$', global.make_zjquery());
add_dependencies({
Handlebars: 'handlebars',
templates: 'js/templates',
hash_util: 'js/hash_util',
hashchange: 'js/hashchange',
narrow: 'js/narrow',
people: 'js/people',
});
set_global('message_store', {
recent_private_messages: new global.Array(),
});
@ -27,9 +18,13 @@ set_global('popovers', {
hide_all: function () {},
});
var pm_list = require('js/pm_list.js');
global.compile_template('sidebar_private_message_list');
zrequire('hash_util');
zrequire('hashchange');
zrequire('narrow');
zrequire('Handlebars', 'handlebars');
zrequire('templates');
zrequire('people');
zrequire('pm_list');
var alice = {
email: 'alice@zulip.com',