diff --git a/test/utils/urlUtils.js b/test/utils/urlUtils.js index c0eae000a4..0c32470531 100644 --- a/test/utils/urlUtils.js +++ b/test/utils/urlUtils.js @@ -36,6 +36,8 @@ const stubUrlUtils = (options, sandbox) => { }); } }); + + return stubInstance; }; // Method for regressions tests must be used with restore method @@ -49,7 +51,8 @@ const stubUrlUtilsFromConfig = () => { redirectCacheMaxAge: config.get('caching:301:maxAge'), baseApiPath: '/ghost/api' }; - stubUrlUtils(options, defaultSandbox); + + return stubUrlUtils(options, defaultSandbox); }; const restore = () => {