From 155e96b044ce7d93cca0214ea25352762a046bb2 Mon Sep 17 00:00:00 2001 From: Naz Date: Thu, 18 Nov 2021 12:58:55 +0400 Subject: [PATCH] Fixed undefined error refs https://github.com/TryGhost/Toolbox/issues/135 - Not all callers provide the parameter, so an empty object default saves from unecessary "undefined" errors --- test/utils/url-service-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils/url-service-utils.js b/test/utils/url-service-utils.js index 459a340f41..87827550ed 100644 --- a/test/utils/url-service-utils.js +++ b/test/utils/url-service-utils.js @@ -17,7 +17,7 @@ module.exports.isFinished = async (options = {disableDbReadyEvent: false}) => { }; // @TODO: unify all the reset/softTeset helpers so they either work how the main code works or the reasons why they are different are clear -module.exports.init = ({urlCache}) => { +module.exports.init = ({urlCache} = {}) => { urlService.init({urlCache}); };