๐ฉโ๐ซ toBeTruthy and toBeFalsy
Tell the truthy, or at least don't falsy.
These comparisons are used to determine if a value is truthy or falsy in the JavaScript sense. In JavaScript there are only six falsy values:
false
0
""
null
undefined
NaN
In AssemblyScript, there is no undefined
, so as-pect
will treat each of those values as falsy. Truthy values are anything that is not falsy,
These methods are safe to use with jest
.
Last updated