From 091cd8c3b6bb9f4088e3eae89360bc56cd3389b4 Mon Sep 17 00:00:00 2001 From: Nito Buendia Date: Wed, 16 Mar 2022 21:34:28 +0800 Subject: [PATCH] Remove spyObj setup from test that does not require it --- spec/core/matchers/toHaveSpyInteractionsSpec.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/spec/core/matchers/toHaveSpyInteractionsSpec.js b/spec/core/matchers/toHaveSpyInteractionsSpec.js index 1fdfb562..c4b7b788 100755 --- a/spec/core/matchers/toHaveSpyInteractionsSpec.js +++ b/spec/core/matchers/toHaveSpyInteractionsSpec.js @@ -33,8 +33,6 @@ describe('toHaveSpyInteractions', function() { [true, 123, 'string'].forEach(function(testValue) { it(`throws error if a non-object (${testValue}) is passed`, function() { - let spyObj = jasmineUnderTest.getEnv().createSpyObj('NewClass', ['spyA', 'spyB']); - expect(function() { expect(testValue).toHaveSpyInteractions(); }).toThrowError(Error, /Expected a spy object, but got/);