diff --git a/src/test/spec/button-area/button-area.spec.ts b/src/test/spec/button-area/button-area.spec.ts index 53c822db9..65587f016 100644 --- a/src/test/spec/button-area/button-area.spec.ts +++ b/src/test/spec/button-area/button-area.spec.ts @@ -49,7 +49,7 @@ describe('ButtonAreaComponent', function(this: ITestContext) { this.context.component.disabled = true; const callback = jasmine.createSpy('callback'); this.context.component.addEventListener('click', callback); - this.context.component.click(); + this.context.button.click(); expect(callback).not.toHaveBeenCalled(); expect(this.context.button.disabled).toBeTrue(); });