Remove spyObj setup from test that does not require it

This commit is contained in:
Nito Buendia
2022-03-16 21:34:28 +08:00
parent aba0c98eb9
commit 091cd8c3b6

View File

@@ -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/);