Skip to content

contexttesting/assert

Repository files navigation

@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

About

The Assertion Library For Zoroaster Context Testing Framework Including Deep Equal & Assert Throws.

Resources

License

Stars

Watchers

Forks

Packages

No packages published