Merge pull request #1251 from davidxi/patch-1

Update jasmine-support.js
This commit is contained in:
Paul O’Shannessy
2014-04-03 18:41:59 -07:00
+2 -2
View File
@@ -13,7 +13,7 @@ jasmine.getEnv().beforeEach(function() {
lastCalledWith: function() {
if (this.actual.mock === undefined) {
throw Error('toBeCalled() should be used on a mock function');
throw Error('lastCalledWith() should be used on a mock function');
}
var calls = this.actual.mock.calls;
var args = Array.prototype.slice.call(arguments);
@@ -22,7 +22,7 @@ jasmine.getEnv().beforeEach(function() {
toBeCalledWith: function() {
if (this.actual.mock === undefined) {
throw Error('toBeCalled() should be used on a mock function');
throw Error('toBeCalledWith() should be used on a mock function');
}
var args = Array.prototype.slice.call(arguments);
return this.actual.mock.calls.some(function(call) {