Skip to content

A simple counting plugin for the Chai assertion library.

License

Notifications You must be signed in to change notification settings

bhritchie/chai-counting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chai Counting

A simple counting plugin for the Chai assertion library. expect(n).to.be.zero, expect(n).to.be.one, and so on, through expect(n).to.be.ten. Alternatively, n.should.be.zero, n.should.be.one, etc. This saves you the agony of typing the parentheses in n.should.be.eq(0);.

Build Status npm

Install

npm install chai-counting

Use

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

About

A simple counting plugin for the Chai assertion library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages