Chai Counting

Chai アサーションライブラリの単純なカウントプラグイン。 expect(n).to.be.zeroexpect(n).to.be.one、以降 expect(n).to.be.tenまで利用可能。別として、n.should.be.zeron.should.be.one等。これにより、n.should.be.eq(0);という括弧を打つ負担が省けます。

Build Status npm

インストール

npm install chai-counting

使用

const chai = require('chai');
const chaiCounting = require('chai-counting');
chai.use(chaiCounting);