Answers for "chai expect type to be integer"

0

chai expect type to be integer

var expect = require('chai').expect

expect(foo).to.be.a('number')
expect(foo % 1).to.equal(0)
Posted by: Guest on October-20-2020

Browse Popular Code Answers by Language