From a58e9bb61cbc2140cfc2e3c5168df3f0a192852e Mon Sep 17 00:00:00 2001 From: Naz Date: Fri, 3 Dec 2021 11:24:17 +0400 Subject: [PATCH] Added default options to regression test utils refs https://github.com/TryGhost/Toolbox/issues/152 - Allows to override boot options form regression test level - needed in some cases for vhost tests --- test/regression/mock-express-style/utils/setup.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/regression/mock-express-style/utils/setup.js b/test/regression/mock-express-style/utils/setup.js index 070d71b478..128071cde4 100644 --- a/test/regression/mock-express-style/utils/setup.js +++ b/test/regression/mock-express-style/utils/setup.js @@ -44,11 +44,11 @@ module.exports = { * With something based on the real boot * @returns {object} express App */ - initGhost: async () => { - const app = await boot({ + initGhost: async (options = {}) => { + const app = await boot(Object.assign({ server: false, backend: false - }); + }, options)); await urlServiceUtils.isFinished();