chai test integer code example
Example: chai expect type to be integer
var expect = require('chai').expect
expect(foo).to.be.a('number')
expect(foo % 1).to.equal(0)
var expect = require('chai').expect
expect(foo).to.be.a('number')
expect(foo % 1).to.equal(0)