From 191fb9f44345166da44b96ac64aa157b9446dbd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 26 May 2022 13:10:57 -0400 Subject: [PATCH] test: fix tests again --- public/src/utils.js | 2 +- src/utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/utils.js b/public/src/utils.js index 742869583c..f6a6b31897 100644 --- a/public/src/utils.js +++ b/public/src/utils.js @@ -5,7 +5,7 @@ const $ = require('jquery'); const zxcvbn = require('zxcvbn'); -const utils = require('./utils.common'); +const utils = { ...require('./utils.common') }; utils.getLanguage = function () { let lang = 'en-GB'; diff --git a/src/utils.js b/src/utils.js index 3607f9b2d3..719abb50d2 100644 --- a/src/utils.js +++ b/src/utils.js @@ -10,7 +10,7 @@ process.elapsedTimeSince = function (start) { const diff = process.hrtime(start); return (diff[0] * 1e3) + (diff[1] / 1e6); }; -const utils = require('../public/src/utils.common'); +const utils = { ...require('../public/src/utils.common') }; utils.getLanguage = function () { const meta = require('./meta');