From 2cb066215ae6a3f7c35c6741914de1dbc824c04e Mon Sep 17 00:00:00 2001 From: Matan Lurey Date: Wed, 6 May 2015 19:32:28 -0700 Subject: [PATCH] Add correct type to TestBed.createView Closes #1727 --- modules/angular2/src/test_lib/test_bed.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/angular2/src/test_lib/test_bed.js b/modules/angular2/src/test_lib/test_bed.js index d73c6e5496..08ccb03930 100644 --- a/modules/angular2/src/test_lib/test_bed.js +++ b/modules/angular2/src/test_lib/test_bed.js @@ -74,8 +74,7 @@ export class TestBed { * @return {Promise} */ createView(component: Type, - {context = null, html = null}: {context:any, html: string} = {}): Promise { - + {context = null, html = null}: {context:any, html: string} = {}): Promise { if (isBlank(component) && isBlank(context)) { throw new BaseException('You must specified at least a component or a context'); }