Automattic / expect.js

Minimalistic BDD-style assertions for Node.JS and the browser.
2.11k stars 209 forks source link

expose flags and keep assertion chain #40

Closed popomore closed 8 years ago

popomore commented 11 years ago

39

Keep the assertion chain when flag is function, and we can customize the flags such as to.be.called.with('a') and never.to.be.called().

popomore commented 11 years ago

ea6792e Just for reference problem when $flags has two functions and more

truongsinh commented 10 years ago

Please add your unit test case(s). Anyway, I think that "plugin" interface (like Chai's) is a better approach for the problem your are trying to solve.