isomorphic-assert

1.0.0 • Public • Published

view on npm npm module downloads Gihub repo dependents Gihub package dependents Node.js CI js-standard-style

isomorphic-assert

For use in isomorphic test suites where you need an assert library which works the same in both Node.js and the browser.

npm install --save-dev isomorphic-assert

The exported async function returns either assert (in Node.js context) or chai assert (Browser). Both are interchangeable.

import getAssert from 'isomorphic-assert'
const assert = await getAssert()

© 2019-21 Lloyd Brookes <75pound@gmail.com>.

Isomorphic test suite by test-runner and web-runner.

/isomorphic-assert/

    Package Sidebar

    Install

    npm i isomorphic-assert

    Weekly Downloads

    9

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.71 kB

    Total Files

    4

    Last publish

    Collaborators

    • 75lb