From 30eda3b7e3afb34480b734203b0d5510daffdda3 Mon Sep 17 00:00:00 2001 From: Glenn Jorde Date: Wed, 11 Jul 2012 07:26:34 +0200 Subject: [PATCH] Corrected textual message --- chai-spies.js | 4 ++-- lib/spy.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/chai-spies.js b/chai-spies.js index 8ab8522..15cf535 100644 --- a/chai-spies.js +++ b/chai-spies.js @@ -156,8 +156,8 @@ new Assertion(this._obj).to.be.spy; this.assert( this._obj.__spy.calls.length === 2 - , 'expected #{this} to have been called once but got #{act}' - , 'expected #{this} to not have been called once' + , 'expected #{this} to have been called twice but got #{act}' + , 'expected #{this} to not have been called twice' , 2 , this._obj.__spy.calls.length ); diff --git a/lib/spy.js b/lib/spy.js index fc41e32..eafe369 100644 --- a/lib/spy.js +++ b/lib/spy.js @@ -140,8 +140,8 @@ module.exports = function (chai, _) { new Assertion(this._obj).to.be.spy; this.assert( this._obj.__spy.calls.length === 2 - , 'expected #{this} to have been called once but got #{act}' - , 'expected #{this} to not have been called once' + , 'expected #{this} to have been called twice but got #{act}' + , 'expected #{this} to not have been called twice' , 2 , this._obj.__spy.calls.length );