From aba0c98eb95181460eb838b33833f32c54c6022e Mon Sep 17 00:00:00 2001 From: Nito Buendia Date: Wed, 16 Mar 2022 21:31:40 +0800 Subject: [PATCH] Fix unit test to include testValue instead of a constant value --- spec/core/matchers/toHaveSpyInteractionsSpec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/core/matchers/toHaveSpyInteractionsSpec.js b/spec/core/matchers/toHaveSpyInteractionsSpec.js index 2e1bfaff..1fdfb562 100755 --- a/spec/core/matchers/toHaveSpyInteractionsSpec.js +++ b/spec/core/matchers/toHaveSpyInteractionsSpec.js @@ -36,7 +36,7 @@ describe('toHaveSpyInteractions', function() { let spyObj = jasmineUnderTest.getEnv().createSpyObj('NewClass', ['spyA', 'spyB']); expect(function() { - expect(true).toHaveSpyInteractions(); + expect(testValue).toHaveSpyInteractions(); }).toThrowError(Error, /Expected a spy object, but got/); }); });