0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

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 * With something based on the real boot
* @returns {object} express App * @returns {object} express App
*/ */
initGhost: async () => { initGhost: async (options = {}) => {
const app = await boot({ const app = await boot(Object.assign({
server: false, server: false,
backend: false backend: false
}); }, options));
await urlServiceUtils.isFinished(); await urlServiceUtils.isFinished();