This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@seognil-lab/chai-helper

0.1.4 • Public • Published

⭐️ What

A bundle of suger functions of chai the assertion library.

📦 Getting Started

Installation

npm install –-save-dev @seognil-lab/chai-helper
# or
yarn add -D @seognil-lab/chai-helper

Usage

checkFitApprox(data, comp, [shouldPass = true], [delta])

// `test.js` which would be called by `mocha`

const {
    checkFit,
    checkFitApprox,
    checkEqual,
    checkEqualApprox,
    checkError,
    VOID,
    ANY,
} = require('@seognil-lab/chai-helper');

describe('simple test for api call', () => {
    it('wont crash', () => {
        checkFitApprox({ a: 0.1 + 0.2 }, { a: 0.3, d: VOID }, true);
    });
});

💡 Why

Make my life easier :)

📖 Description

API

  • checkFit
  • checkFitApprox
  • checkEqual
  • checkEqualApprox
  • checkError

CheckFit Helper from deepIncludePartial

  • VOID
  • ANY

⌨️ Contribution

# git clone and cd into it
git clone https://github.com/seognil-lab/chai-helper

# npm command
npm i
npm run test:watch

📜 References

https://github.com/seognil-lab/la-starter-cli
https://github.com/seognil-lab/deep-include-partial
https://github.com/seognil-lab/is-equal-approx


🕗 TODO

Readme

Keywords

none

Package Sidebar

Install

npm i @seognil-lab/chai-helper

Weekly Downloads

4

Version

0.1.4

License

MIT

Unpacked Size

14.3 kB

Total Files

8

Last publish

Collaborators

  • seognil