diff --git a/frontend_tests/node_tests/echo.js b/frontend_tests/node_tests/echo.js index a6517a5cbf..ce4bdd5bca 100644 --- a/frontend_tests/node_tests/echo.js +++ b/frontend_tests/node_tests/echo.js @@ -1,11 +1,15 @@ /*global Dict */ var path = require('path'); var fs = require('fs'); -var jsdom = require("jsdom"); -var window = jsdom.jsdom().defaultView; global.stub_out_jquery(); +set_global('window', { + location: { + origin: 'http://zulip.zulipdev.com', + }, +}); + set_global('page_params', { people_list: [], realm_emoji: { @@ -58,9 +62,6 @@ set_global('$', function (obj) { set_global('feature_flags', {local_echo: true}); -jsdom.changeURL(window, 'http://zulip.zulipdev.com'); -set_global('window', window); - var people = global.people; var cordelia = {