Fixed typo "receieved" to "received", Adapted test.

This commit is contained in:
Felix Rilling
2019-03-10 10:59:56 +01:00
parent 239a615770
commit 63f900287c
2 changed files with 2 additions and 2 deletions

View File

@@ -183,7 +183,7 @@ describe('Spies', function () {
var spy = env.createSpy('foo'); var spy = env.createSpy('foo');
spy.withArgs('bar').and.returnValue(-1); spy.withArgs('bar').and.returnValue(-1);
expect(function() { spy('baz', {qux: 42}); }).toThrowError('Spy \'foo\' receieved a call with arguments [ \'baz\', Object({ qux: 42 }) ] but all configured strategies specify other arguments.'); expect(function() { spy('baz', {qux: 42}); }).toThrowError('Spy \'foo\' received a call with arguments [ \'baz\', Object({ qux: 42 }) ] but all configured strategies specify other arguments.');
}); });
}); });
}); });

View File

@@ -112,7 +112,7 @@ getJasmineRequireObj().Spy = function (j$) {
if (!strategy) { if (!strategy) {
if (argsStrategies.any() && !baseStrategy.isConfigured()) { if (argsStrategies.any() && !baseStrategy.isConfigured()) {
throw new Error('Spy \'' + strategyArgs.name + '\' receieved a call with arguments ' + j$.pp(Array.prototype.slice.call(args)) + ' but all configured strategies specify other arguments.'); throw new Error('Spy \'' + strategyArgs.name + '\' received a call with arguments ' + j$.pp(Array.prototype.slice.call(args)) + ' but all configured strategies specify other arguments.');
} else { } else {
strategy = baseStrategy; strategy = baseStrategy;
} }