Fixed broken SpyRegistry spec

This commit is contained in:
Steve Gravrock
2025-09-25 20:40:31 -07:00
parent 7214ccd3dc
commit 8863643d55

View File

@@ -119,15 +119,15 @@ describe('SpyRegistry', function() {
});
it('overrides the method on the object and returns the spy', function() {
const originalFunctionWasCalled = false,
spyRegistry = new jasmineUnderTest.SpyRegistry({
createSpy: createSpy
}),
subject = {
spiedFunc: function() {
originalFunctionWasCalled = true;
}
};
let originalFunctionWasCalled = false;
const spyRegistry = new jasmineUnderTest.SpyRegistry({
createSpy: createSpy
});
const subject = {
spiedFunc: function() {
originalFunctionWasCalled = true;
}
};
const spy = spyRegistry.spyOn(subject, 'spiedFunc');