From da9ea395a5686f3115ede4aafcd4936e2dd7834c Mon Sep 17 00:00:00 2001 From: Peter Date: Mon, 24 Oct 2016 11:37:57 +0100 Subject: [PATCH] Add .been, i.e. spy.should.have.been.called() --- lib/ext/chain.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ext/chain.js b/lib/ext/chain.js index 58f5eeb..7b553d8 100644 --- a/lib/ext/chain.js +++ b/lib/ext/chain.js @@ -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 @@ -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); }); }