Add correct type to TestBed.createView

Closes #1727
This commit is contained in:
Matan Lurey 2015-05-06 19:32:28 -07:00 committed by Misko Hevery
parent 200e190f70
commit 2cb066215a
1 changed files with 1 additions and 2 deletions

View File

@ -74,8 +74,7 @@ export class TestBed {
* @return {Promise<ViewProxy>}
*/
createView(component: Type,
{context = null, html = null}: {context:any, html: string} = {}): Promise<AppView> {
{context = null, html = null}: {context:any, html: string} = {}): Promise<ViewProxy> {
if (isBlank(component) && isBlank(context)) {
throw new BaseException('You must specified at least a component or a context');
}