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:
parent
9dc096cb15
commit
a58e9bb61c
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue