Skip to content

Commit

Permalink
chai.spy.callsBackWith implements chaijs#65
Browse files Browse the repository at this point in the history
  • Loading branch information
nickcarenza committed Apr 17, 2017
1 parent b11aeeb commit dcec1f0
Show file tree
Hide file tree
Showing 4 changed files with 311 additions and 55 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ object.push(5);
// or you create spy which returns static value
var spy = chai.spy.returns(true);

// or you create spy which calls back with some values
var spy = chai.spy.callsBackWith(new Error('foo'));
var spy = chai.spy.callsBackWith(null, {id: 12});

spy(); // true
```

Expand Down
Loading

0 comments on commit dcec1f0

Please sign in to comment.