Rulvar API reference / @rulvar/store-conformance / ensure
Function: ensure()
ts
function ensure(
condition,
checkId,
message): asserts condition;Defined in: packages/store-conformance/src/types.ts:56
Assertion helper: conformance failures are plain Errors naming the check.
Parameters
| Parameter | Type |
|---|---|
condition | boolean |
checkId | string |
message | string |
Returns
asserts condition