@quoin/node-test-helpers

2.0.1 • Public • Published

node-test-helpers

Build Status

This is an extension of node-test-helpers-core that adds chai plugins for projects.

To install

To add the library to your project:

npm install --save-dev @quoin/node-test-helpers

Usage

An example of usage:

const testHelpers = require('@quoin/node-test-helpers');

const moduleToTest = require('./index');

const expect = testHelpers.expect;

describe("index", () => {
    it("should export a function with 2 params", () => {
        expect(index).to.be.a('function').to.have.lengthOf(2);
    });
});

See the lib/index.js file to see what libraries are imported and refer to their respective documentation.

Examples

See node-test-helpers-core's README for some examples.

Readme

Keywords

Package Sidebar

Install

npm i @quoin/node-test-helpers

Weekly Downloads

4

Version

2.0.1

License

MIT

Unpacked Size

5.34 kB

Total Files

5

Last publish

Collaborators

  • bteeman
  • jtoliver
  • elimtaft-quoin