feat: expectation matchers #3
Labels
enhancement
New feature or request
good first issue
Good for newcomers
hacktoberfest
help wanted
Extra attention is needed
Tracking issue identify progress of the various expectation matchers.
expect(value)
.not
.toBe(value)
.toEqual(value)
.isNull
.isNotNull
- Dart equivalent ofexpect.anything()
.toBeFalsy
.toBeTruthy
.toThrow(Error?)
String
expect.stringToMatch(Pattern)
expect.not.stringToMatch(Pattern)
Number
.toBeGreaterThan(num)
.toBeGreaterThanOrEqual(num)
.toBeLessThan(num)
.toBeLessThanOrEqual(num)
List
expect.listContaining(List)
expect.not.listContaining(List)
.toContain(item)
.toContainEqual(item)
Map
expect.mapContaining(Map)
expect.not.mapContaining(Map)
.toHaveProperty(path, value?)
Future
.resolves
.rejects
The text was updated successfully, but these errors were encountered: