Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #126 from vp2177/master
Browse files Browse the repository at this point in the history
Add .been, i.e. spy.should.have.been.called()
  • Loading branch information
btd authored Oct 25, 2016
2 parents 9d725a3 + da9ea39 commit cf1504d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ext/chain.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default function(should, Assertion) {
* @alias Assertion#of
* @alias Assertion#a
* @alias Assertion#and
* @alias Assertion#been
* @alias Assertion#have
* @alias Assertion#has
* @alias Assertion#with
Expand All @@ -25,7 +26,7 @@ export default function(should, Assertion) {
* @alias Assertion#it
* @category assertion chaining
*/
['an', 'of', 'a', 'and', 'be', 'has', 'have', 'with', 'is', 'which', 'the', 'it'].forEach(function(name) {
['an', 'of', 'a', 'and', 'be', 'been', 'has', 'have', 'with', 'is', 'which', 'the', 'it'].forEach(function(name) {
Assertion.addChain(name);
});
}

0 comments on commit cf1504d

Please sign in to comment.