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

Commit

Permalink
Add .been, i.e. spy.should.have.been.called()
Browse files Browse the repository at this point in the history
  • Loading branch information
vp2177 committed Oct 24, 2016
1 parent 9d725a3 commit da9ea39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ext/chain.js
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 da9ea39

Please sign in to comment.