From 4d814c03d46cf8a468a5a6451a99734312c99b94 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Wed, 8 Nov 2017 07:54:06 -0800 Subject: [PATCH] node tests: Use zrequire in compose.js. --- frontend_tests/node_tests/compose.js | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/frontend_tests/node_tests/compose.js b/frontend_tests/node_tests/compose.js index d788d4da4b..67dfa39a17 100644 --- a/frontend_tests/node_tests/compose.js +++ b/frontend_tests/node_tests/compose.js @@ -44,17 +44,14 @@ set_global('sent_messages', { global.document.location.protocol = 'https:'; global.document.location.host = 'foo.com'; -add_dependencies({ - common: 'js/common', - compose_state: 'js/compose_state', - compose_ui: 'js/compose_ui.js', - Handlebars: 'handlebars', - people: 'js/people', - stream_data: 'js/stream_data', - util: 'js/util', -}); - -var compose = require('js/compose.js'); +zrequire('compose_ui'); +zrequire('util'); +zrequire('common'); +zrequire('Handlebars', 'handlebars'); +zrequire('stream_data'); +zrequire('compose_state'); +zrequire('people'); +zrequire('compose'); page_params.use_websockets = false; var me = {