unit testing - What are the differences between to.equal(true) and to.be.true? -
i'm learning mocha , chai.
i try understand when have use to.equal(true) or to.be.true want know better situation each.
thanks!
my understanding docs .to , .be , various other pieces of expect/should syntax syntactical sugar, no real functionality.
so .to.be.true === .true , .to.equal(true) === .equal(true). difference, if any, between .true , .equal(true) -- , there isn't difference; .true syntactical shorthand .equal(true).
Comments
Post a Comment