Fix unit test to include testValue instead of a constant value
This commit is contained in:
@@ -36,7 +36,7 @@ describe('toHaveSpyInteractions', function() {
|
|||||||
let spyObj = jasmineUnderTest.getEnv().createSpyObj('NewClass', ['spyA', 'spyB']);
|
let spyObj = jasmineUnderTest.getEnv().createSpyObj('NewClass', ['spyA', 'spyB']);
|
||||||
|
|
||||||
expect(function() {
|
expect(function() {
|
||||||
expect(true).toHaveSpyInteractions();
|
expect(testValue).toHaveSpyInteractions();
|
||||||
}).toThrowError(Error, /Expected a spy object, but got/);
|
}).toThrowError(Error, /Expected a spy object, but got/);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user