@zoroaster/assert
is The Assertion Library For Zoroaster Context Testing Framework Including Deep Equal & Assert Throws.
yarn add @zoroaster/assert
The package is available by importing its default function:
import assert from '@zoroaster/assert'
Call this function to get the result you want.
_@zoroaster/assert.Config
: Options for the program.
Name | Type | Description | Default |
---|---|---|---|
shouldRun | boolean | A boolean option. | true |
text* | string | A text to return. | - |
/* alanode example/ */
import assert from '@zoroaster/assert'
(async () => {
const res = await assert({
text: 'example',
})
console.log(res)
})()
example
(c) Context Testing 2019