Skip to content

Commit c79ff96

Browse files
committed
fix event handlers in test adapter
1 parent d1579cf commit c79ff96

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/adapter/angular.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ export function render(Component, props){
2222
component = fixture.componentInstance;
2323

2424
for(let i in props){
25-
component[i] = props[i];
25+
if (i.slice(0, 2) == 'on'){
26+
component[i].subscribe(props[i]);
27+
}
28+
else {
29+
component[i] = props[i];
30+
}
2631
}
2732

2833
fixture.detectChanges();

0 commit comments

Comments
 (0)