assertTrue()function
assertTrue(value: unknown, caller: AnyCaller = assertTrue): asserts value is true
| Param | Type | |
|---|---|---|
value | unknown | The value to assert. required |
caller | AnyCaller | Function to attribute a thrown error to (defaults to assertTrue itself). Defaults to assertTrue |
| Return | |
|---|---|
asserts value is true |
| Throws | |
|---|---|
RequiredError | If value is not the literal true. |
Assert that an unknown value is exactly true.