2.0.1 • Published 3 years ago

@quoin/node-test-helpers v2.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

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.

2.0.1

3 years ago

2.0.0-rc.2

3 years ago

2.0.0-rc.1

3 years ago

2.0.0

3 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago