Older versions don't support const, use var
This commit is contained in:
@@ -299,7 +299,7 @@ describe("jasmineUnderTest.pp", function () {
|
||||
});
|
||||
|
||||
spyRegistry.spyOn(TestObject, 'toString');
|
||||
const testSpyObj = env.createSpyObj('TheClassName', ['toString']);
|
||||
var testSpyObj = env.createSpyObj('TheClassName', ['toString']);
|
||||
|
||||
expect(jasmineUnderTest.pp(testSpyObj)).toEqual("spy on TheClassName.toString");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user