Matchers
Array
- .toBeArray()
- .toBeArrayOfSize()
- .toIncludeAllMembers([members])
- .toIncludeAllPartialMembers([members])
- .toIncludeAnyMembers([members])
- .toIncludeSameMembers([members])
- .toPartiallyContain(member)
- .toSatisfyAll(predicate)
- .toSatisfyAny(predicate)
Boolean
Date
- .toBeDate()
- .toBeValidDate()
- .toBeAfter(date)
- .toBeBefore(date)
- .toBeAfterOrEqualTo(date)
- .toBeBeforeOrEqualTo(date)
- .toBeBetween(startDate, endDate)
Function
Mock
Number
- .toBeNumber()
- .toBeNaN()
- .toBeFinite()
- .toBePositive()
- .toBeNegative()
- .toBeEven()
- .toBeOdd()
- .toBeWithin(start, end)
- .toBeInteger()
Object
- .toBeObject()
- .toBeEmptyObject()
- .toContainKey(key)
- .toContainKeys([keys])
- .toContainAllKeys([keys])
- .toContainAnyKeys([keys])
- .toContainValue(value)
- .toContainValues([values])
- .toContainAllValues([values])
- .toContainAnyValues([values])
- .toContainEntry([key, value])
- .toContainEntries([[key, value]])
- .toContainAllEntries([[key, value]])
- .toContainAnyEntries([[key, value]])
- .toBeExtensible()
- .toBeFrozen()
- .toBeSealed()
Promise
String
- .toBeString()
- .toBeHexadecimal(string)
- .toBeDateString(string)
- .toEqualCaseInsensitive(string)
- .toStartWith(prefix)
- .toEndWith(suffix)
- .toInclude(substring)
- .toIncludeRepeated(substring, times)
- .toIncludeMultiple([substring])
- .toEqualIgnoringWhitespace(string)