Skip to content

Conversation

@xballoy
Copy link
Contributor

@xballoy xballoy commented Jul 31, 2025

Dedicated PR for #3080 (comment)

test/isAsync.js Outdated
}).isAsync()).to.be.true();
});

it('returns false for when without switch', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently fails

Failed tests:

  427) isAsync() returns true for any with async rules:

      when.switch is not iterable

      at internals.Base.isAsync (~/Projects/oss/joi/lib/base.js:485:41)
      at internals.Base.isAsync (~/Projects/oss/joi/lib/types/keys.js:482:206)
      at ~/Projects/oss/joi/test/isAsync.js:96:12
      at Immediate.<anonymous> (~/Projects/oss/joi/node_modules/@hapi/lab/lib/runner.js:661:35)
      at process.processImmediate (node:internal/timers:485:21)

@Marsup
Copy link
Collaborator

Marsup commented Jul 31, 2025

Thanks, I indeed forgot to push some falsy tests towards the end. I pushed it directly on master, you can rebase your other PR.

@Marsup Marsup closed this Jul 31, 2025
@xballoy xballoy deleted the xba/fix-isasync branch July 31, 2025 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants