Update jasmine-support.js
fix typo in multiple error messages.
davidxi committed
Mar 12, 2014 at 14:39 UTC
29abe53924de336ab8c0df677df23adf06c9c2a3
1 file changed
+2
-2
vendor/jasmine/jasmine-support.js
+2
-2
@@ -13,7 +13,7 @@ jasmine.getEnv().beforeEach(function() {
13
14
lastCalledWith: function() {
15
if (this.actual.mock === undefined) {
16
- throw Error('toBeCalled() should be used on a mock function');
16
+ throw Error('lastCalledWith() should be used on a mock function');
17
}
18
var calls = this.actual.mock.calls;
19
var args = Array.prototype.slice.call(arguments);
@@ -22,7 +22,7 @@ jasmine.getEnv().beforeEach(function() {
22
23
toBeCalledWith: function() {
24
if (this.actual.mock === undefined) {
25
- throw Error('toBeCalled() should be used on a mock function');
25
+ throw Error('toBeCalledWith() should be used on a mock function');
26
}
27
var args = Array.prototype.slice.call(arguments);
28
return this.actual.mock.calls.some(function(call) {