chai-spies
chai-spies copied to clipboard
Spies for Chai Assertion Library.
Please include a report to get the called.with assertions which shows which arguments were actually called. This is a suggestion I came up with: in spy.js, for any called.with assertion,...
A previous issue https://github.com/chaijs/chai-spies/issues/27 introduced the reset method to this library which we use extensively. It was removed in 1.0 for no clear reason. I'd like to see it put...
## The devDependency [mocha](https://github.com/mochajs/mocha) was updated from `5.2.0` to `6.0.0`. 🚨 [View failing branch](https://github.com/chaijs/chai-spies/compare/master...chaijs:greenkeeper%2Fmocha-6.0.0). This version is **covered** by your **current version range** and after updating it in your project...
Atm one as to register the spies before beeing able to use it with the chai-object `chai.spy` However, I like to import only what I need: ```js import {expect, use}...
``` JavaScript function fn(options) { options.foo = 1; } spy = chai.spy(fn); spy({ bar : 1 }); spy.should.be.called.with({ bar : 1 }); // fail ``` This happens because the function...
Suppose I have a setup such that a() .then(b) .then(c) Is there a way to verify that b runs before c using chai-spies?
implements #65
`chai.spy.callsBackWith` simply creates a spy that expects the last argument it was called with to be a callback function and calls it with the arguments provided in its constructor. ```...
"chai": "^4.1.2", "chai-as-promised": "^7.1.1", "chai-spies": "^0.7.1", Hi there, I am testing a little ORM I created myself I am having some problems testing the result of a spy on a...
I ❤️ `chai-spies` especially `with`, but I found the output left me wanting a bit more. For a long while, I would just [write in some hacky stuff manually](https://github.com/robcolburn/chai-spies/commit/26827fdbb0228d9630c8fc972f10a05d1a37065b). But,...