Skip to content

Commit 2cb0662

Browse files
matanlureymhevery
authored andcommitted
Add correct type to TestBed.createView
Closes angular#1727
1 parent 200e190 commit 2cb0662

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/angular2/src/test_lib/test_bed.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ export class TestBed {
7474
* @return {Promise<ViewProxy>}
7575
*/
7676
createView(component: Type,
77-
{context = null, html = null}: {context:any, html: string} = {}): Promise<AppView> {
78-
77+
{context = null, html = null}: {context:any, html: string} = {}): Promise<ViewProxy> {
7978
if (isBlank(component) && isBlank(context)) {
8079
throw new BaseException('You must specified at least a component or a context');
8180
}

0 commit comments

Comments
 (0)