Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/wait-on.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down