node tests: Use zrequire in compose.js.

This commit is contained in:
Steve Howell 2017-11-08 07:54:06 -08:00 committed by Tim Abbott
parent e63dd59065
commit 4d814c03d4
1 changed files with 8 additions and 11 deletions

View File

@ -44,17 +44,14 @@ set_global('sent_messages', {
global.document.location.protocol = 'https:'; global.document.location.protocol = 'https:';
global.document.location.host = 'foo.com'; global.document.location.host = 'foo.com';
add_dependencies({ zrequire('compose_ui');
common: 'js/common', zrequire('util');
compose_state: 'js/compose_state', zrequire('common');
compose_ui: 'js/compose_ui.js', zrequire('Handlebars', 'handlebars');
Handlebars: 'handlebars', zrequire('stream_data');
people: 'js/people', zrequire('compose_state');
stream_data: 'js/stream_data', zrequire('people');
util: 'js/util', zrequire('compose');
});
var compose = require('js/compose.js');
page_params.use_websockets = false; page_params.use_websockets = false;
var me = { var me = {