From 180f910764fd577ff839733c86d374fad56709de Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Wed, 8 Nov 2017 09:14:57 -0800 Subject: [PATCH] node tests: Use zrequire in message_list_view.js. --- frontend_tests/node_tests/message_list_view.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/frontend_tests/node_tests/message_list_view.js b/frontend_tests/node_tests/message_list_view.js index b0d1c51eed..597d60e461 100644 --- a/frontend_tests/node_tests/message_list_view.js +++ b/frontend_tests/node_tests/message_list_view.js @@ -1,10 +1,6 @@ -var _ = require('node_modules/underscore/underscore.js'); -var MessageListView = require('js/message_list_view.js'); - -add_dependencies({ - XDate: 'node_modules/xdate/src/xdate.js', - util: 'js/util.js', -}); +zrequire('util'); +zrequire('XDate', 'node_modules/xdate/src/xdate'); +var MessageListView = zrequire('message_list_view'); set_global('page_params', { twenty_four_hour_time: false,