tehanu-teas

v1.0.0
Provides a set of assertion methods compatible with the built-in assert module usable in both Node.js and the browser.
assert testing unit-testing test

Test Assertions

NPM version

Provides a set of assertion methods compatible with the built-in assert module usable in both Node.js and the browser.

Synopsis

const test = require('tehanu')('sum'),
      { equal } = require('tehanu-teas'),
      sum = require('./sum'),
      test = tehanu('sum')

test('two numbers', () => equal(sum(1, 2), 3))

Installation

You can install the assertion library using your favourite Node.js package manager:

npm i -D tehanu-teas
yarn add -D tehanu-teas
pnpm i -D tehanu-teas
npm i tehanu-teas

Metadata

  • MIT
  • >=14.13
  • Ferdinand Prantl
  • released 5/22/2022

Downloads

Maintainers