Automattic / Automattic/expect.js

Add case-insensitive equality check

Open
#127 1 comment 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 would really prefer something like

```
expect(something).to.equalCaseInsensitive(other);
```

over

```
expect(something.toLowerCase()).to.equal(other.toLowerCase());
```

Can we have this?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the existing equality assertion API and its tests to find where a case-insensitive matcher would fit. Done means supporting the requested equalCaseInsensitive syntax and covering comparisons with the existing test suite.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing-qa
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.