The test function. Must return true
to signal success.
Assert that an asynchronously evaluated condition is eventually true.
The async test function. Must return true
to signal success.
Assert that a condition is eventually true.
The test function. Must return true
to signal success.
Assert x < y
.
The ostensibly larger value.
The ostensibly smaller value.
Optional error message if the assertion does not hold.
Assert x >= y
.
The ostensibly smaller or equal value.
The ostensibly larger or equal value.
Optional error message if the assertion does not hold.
Assert that an HTTP response finished with the given status code.
HTTP fetch response object, as gotten from await
[["net_utils".fetch|netutils.fetch
]](...)
, or the promise resolving to that (e.g. just [["net_utils".fetch|
netutils.fetch]]
(...)`).
The expected HTTP status (e.g. 201 for Created)
The fetch response object.
Assert that a string is included in another, or object is included in an array.
The thing to search in.
The thing to search for.
Optional error message if the assertion does not hold.
Assert x < y
.
The ostensibly smaller value.
The ostensibly larger value.
Optional error message if the assertion does not hold.
Assert x <= y
.
The ostensibly smaller or equal value.
The ostensibly larger or equal value.
Optional error message if the assertion does not hold.
Assert that a string is not included in another, or object is not included in an array.
The thing to search in.
The thing to search for.
Optional error message if the assertion does not hold.
Assert that a value is a Number or BigInt.
The value to check.
Assert function with a message that is generated on demand.
The value to be asserted to be true.
Function to generate the error message, should the value be false.
Wait until a function returns a result that is truthy
Wait until a function doesn't throw anymore.
Generated using TypeDoc
Assert that a condition remains true for the whole timeout.