🚫
toBeNull
The expectation will render your code null and void!
This comparison looks specifically for a null value.
1
expect<Vec3 | null>(null).toBeNull(); // valid assertion
Copied!
In the case of numeric values, numbers cannot be null in AssemblyScript, thus, if this method is called with anything other than a reference type, this will result in a compile time error.
This method is safe to use with jest portably.
Last modified 1yr ago
Copy link