cnunciato / ng-mock-component

An Angular module for mocking components.
MIT License
53 stars 13 forks source link

Add EventEmitters to outputs, fixing 'Cannot read property 'subscribe… #1

Closed Almar closed 7 years ago

Almar commented 7 years ago

…' of undefined'.

When mocking a component with a event binding, for instance (click)="...", I get the following error. Adding the EventEmitter's fixes this.

TypeError: Cannot read property 'subscribe' of undefined