Skip to content

Node.js based forum software built for the modern web

fix: tests

Baris Usakli9c051386d59a
diff --git a/test/utils.js b/test/utils.js
index ea484891d0..3d6e01606f 100644
--- a/test/utils.js
+++ b/test/utils.js
@@ -240,6 +240,7 @@ describe('Utility Methods', function () {
});
it('should get empty object for url params', function (done) {
+ global.document = window.document;
var params = utils.params();
assert.equal(Object.keys(params), 0);
done();