From 65dc6a0975e54788d1f64023ca9348e77bb532e5 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Wed, 8 Nov 2017 09:25:20 -0800 Subject: [PATCH] node tests: Use zrequire in narrow_state.js. --- frontend_tests/node_tests/narrow_state.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/frontend_tests/node_tests/narrow_state.js b/frontend_tests/node_tests/narrow_state.js index 4076f7c16d..7ea4c0f964 100644 --- a/frontend_tests/node_tests/narrow_state.js +++ b/frontend_tests/node_tests/narrow_state.js @@ -1,18 +1,11 @@ -add_dependencies({ - people: 'js/people.js', - stream_data: 'js/stream_data.js', - Filter: 'js/filter.js', -}); +zrequire('people'); +zrequire('Filter', 'js/filter'); +zrequire('stream_data'); +zrequire('narrow_state'); set_global('page_params', { }); -var narrow_state = require('js/narrow_state.js'); - -var Filter = global.Filter; -var stream_data = global.stream_data; -var _ = global._; - function set_filter(operators) { operators = _.map(operators, function (op) { return {operator: op[0], operand: op[1]};