Automattic / Automattic/expect.js

Value be Something OR SomethingElse

Open
#138 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.1k
Forks
207
PR merge metrics
No merged PRs in 30d

Description

I'm trying to test that a value is one value or another. In either case it's considered passing but I have not been able to figure out how to test for this.

Does expect.js support this sort of assertion and if not how should I go about testing for it?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the expect.js assertion API and documentation to determine whether an assertion can accept either of two values. Confirm the expected behavior from the issue, then clarify whether the outcome should be a supported assertion, documentation, or usage guidance.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.