@rbxts/expect
Advanced tools
Changelog
2.0.0
equal
to point to deepEqual
instead of a shallow version. Added the shallowEqual
and shallowEquals
methods to support shallow equality. eq
also still points to shallow equal.finite
matcherendWith
and endsWith
matchersbetween
and within
matcherspositive
and negative
matchersmatch
and matches
matchersmatchExactly
matcher as an alias for deepEqual
lessThan
, lt
and below
lessThanOrEqualTo
, lte
and most
expect
key
and property
matchersdefined
, ok
, exist
, exists
, undefined
, null
and nil
matcherscontainExactly
matcherstartWith
and startsWith
matcherssome
matchergreaterThan
, gt
and above
true
, false
, truthy
and falsy
matcherseven
and odd
matcherspattern
matchersatisfy
and satisfies
matchersall
matcherat
for numbersnear
and closeTo
matcherscontainExactlyInOrder
matchergreaterThanOrEqualTo
, gte
, and least
getNearestDefinedProxy
function for propagating defined values in deeply nested null chainslength
wasn't properly checking empty arrays and objectsencode
from properly encoding null valueserr
not throwing whenever the underlying function didn't throw