Skip to content

Latest commit

 

History

History
65 lines (44 loc) · 1.85 KB

File metadata and controls

65 lines (44 loc) · 1.85 KB

@zoroaster/assert

npm version

@zoroaster/assert is The Assertion Library For Zoroaster Context Testing Framework Including Deep Equal & Assert Throws.

yarn add @zoroaster/assert

Table Of Contents

API

The package is available by importing its default function:

import assert from '@zoroaster/assert'

assert(
  arg1: string,
  arg2?: boolean,
): void

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

Copyright

(c) Context Testing 2019