mirror of https://github.com/zulip/zulip.git
node tests: Use zrequire in compose.js.
This commit is contained in:
parent
e63dd59065
commit
4d814c03d4
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in New Issue