Remove spyObj setup from test that does not require it
This commit is contained in:
@@ -33,8 +33,6 @@ describe('toHaveSpyInteractions', function() {
|
|||||||
|
|
||||||
[true, 123, 'string'].forEach(function(testValue) {
|
[true, 123, 'string'].forEach(function(testValue) {
|
||||||
it(`throws error if a non-object (${testValue}) is passed`, function() {
|
it(`throws error if a non-object (${testValue}) is passed`, function() {
|
||||||
let spyObj = jasmineUnderTest.getEnv().createSpyObj('NewClass', ['spyA', 'spyB']);
|
|
||||||
|
|
||||||
expect(function() {
|
expect(function() {
|
||||||
expect(testValue).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