From 63f900287c18ab65ae06804cf0e822dcb8880aa9 Mon Sep 17 00:00:00 2001 From: Felix Rilling Date: Sun, 10 Mar 2019 10:59:56 +0100 Subject: [PATCH] Fixed typo "receieved" to "received", Adapted test. --- spec/core/SpySpec.js | 2 +- src/core/Spy.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/core/SpySpec.js b/spec/core/SpySpec.js index 18c6b762..2639aa98 100644 --- a/spec/core/SpySpec.js +++ b/spec/core/SpySpec.js @@ -183,7 +183,7 @@ describe('Spies', function () { var spy = env.createSpy('foo'); 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.'); }); }); }); diff --git a/src/core/Spy.js b/src/core/Spy.js index e6b40669..639d76f8 100644 --- a/src/core/Spy.js +++ b/src/core/Spy.js @@ -112,7 +112,7 @@ getJasmineRequireObj().Spy = function (j$) { if (!strategy) { 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 { strategy = baseStrategy; }