From 14631b874814d47f4384bd121f8f12048b6b3524 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Wed, 8 Nov 2017 09:30:12 -0800 Subject: [PATCH] node tests: Use zrequire in password.js. --- frontend_tests/node_tests/password.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend_tests/node_tests/password.js b/frontend_tests/node_tests/password.js index f3d3558829..9e7a22c725 100644 --- a/frontend_tests/node_tests/password.js +++ b/frontend_tests/node_tests/password.js @@ -1,11 +1,8 @@ -add_dependencies({ - zxcvbn: 'node_modules/zxcvbn/dist/zxcvbn.js', -}); +zrequire('zxcvbn', 'node_modules/zxcvbn/dist/zxcvbn'); +zrequire('common'); set_global('i18n', global.stub_i18n); -var common = require("js/common.js"); - (function test_basics() { var accepted; var password;