diff --git a/lib/wait-on.js b/lib/wait-on.js index a5a86b1..f121166 100644 --- a/lib/wait-on.js +++ b/lib/wait-on.js @@ -80,6 +80,8 @@ const WAIT_ON_SCHEMA = Joi.object({ if not specified, wait-on will return a promise that will be rejected if resource checks did not succeed or resolved otherwise */ function waitOn(opts, cb) { + if (typeof opts === "string") opts = {resources: [opts]} + if (cb !== undefined) { return waitOnImpl(opts, cb); } else {