A collection of assertions for test and production code alike.
npm install @augment-vir/assertA collection of assertions for test and production code alike. These main exports are the following:
- assert: a collection of assertion methods with type guards when possible. Example: assert.isDefined()
- check: a collection of boolean check methods with type guards when possible. Example: check.isBoolean()
- assertWrap: a collection of assertions that return the asserted value if the assertion passes. Examples assertWrap.isArray()
- checkWrap: a collection of checks that return the checked value if it passes or undefined. Example: checkWrap.isInfinite()
- waitUntil: a collection of assertion methods that try to wait until the assertion becomes true. Example: waitUntil.isTruthy()
See the docs under Assert, or Package: @augment-vir/assert here: https://electrovir.github.io/augment-vir