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() { it('overrides the method on the object and returns the spy', function() {
const originalFunctionWasCalled = false, let originalFunctionWasCalled = false;
spyRegistry = new jasmineUnderTest.SpyRegistry({ const spyRegistry = new jasmineUnderTest.SpyRegistry({
createSpy: createSpy createSpy: createSpy
}), });
subject = { const subject = {
spiedFunc: function() { spiedFunc: function() {
originalFunctionWasCalled = true; originalFunctionWasCalled = true;
} }
}; };
const spy = spyRegistry.spyOn(subject, 'spiedFunc'); const spy = spyRegistry.spyOn(subject, 'spiedFunc');