parent
200e190f70
commit
2cb066215a
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue