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
This commit is contained in:
Naz 2021-12-03 11:24:17 +04:00 committed by naz
parent 9dc096cb15
commit a58e9bb61c

View File

@ -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();