Fixed broken SpyRegistry spec
This commit is contained in:
@@ -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');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user