chai-as-promised icon indicating copy to clipboard operation
chai-as-promised copied to clipboard

should.eventually.be.<boolean> and should.eventually.equal(<boolean>)

Open dixitgargi opened this issue 5 years ago • 1 comments

Would like to understand is there any logical difference in between above mentioned two. however I am getting pass result in both of the above. but would like to understand which one is preferred and why

dixitgargi avatar Jul 18 '19 10:07 dixitgargi

After an eventually call, the chain functions the same as in chai. These are the same assertion. It's up to your style preferences to decide which one to use. See the chai docs.

Peter-Lavigne avatar May 01 '20 14:05 Peter-Lavigne