@@ -15,7 +15,8 @@ import {
1515import {
1616 CompileDirectiveMetadata ,
1717 CompileTypeMetadata ,
18- CompileTemplateMetadata
18+ CompileTemplateMetadata ,
19+ CompileProviderMetadata
1920} from 'angular2/src/compiler/directive_metadata' ;
2021import { ViewEncapsulation } from 'angular2/src/core/metadata/view' ;
2122import { ChangeDetectionStrategy } from 'angular2/src/core/change_detection' ;
@@ -28,8 +29,8 @@ export function main() {
2829 var fullDirectiveMeta : CompileDirectiveMetadata ;
2930
3031 beforeEach ( ( ) => {
31- fullTypeMeta =
32- new CompileTypeMetadata ( { name : 'SomeType' , moduleUrl : 'someUrl' , isHost : true } ) ;
32+ fullTypeMeta = new CompileTypeMetadata (
33+ { name : 'SomeType' , moduleUrl : 'someUrl' , isHost : true , diDeps : [ ] } ) ;
3334 fullTemplateMeta = new CompileTemplateMetadata ( {
3435 encapsulation : ViewEncapsulation . Emulated ,
3536 template : '<a></a>' ,
@@ -48,7 +49,8 @@ export function main() {
4849 inputs : [ 'someProp' ] ,
4950 outputs : [ 'someEvent' ] ,
5051 host : { '(event1)' : 'handler1' , '[prop1]' : 'expr1' , 'attr1' : 'attrValue2' } ,
51- lifecycleHooks : [ LifecycleHooks . OnChanges ]
52+ lifecycleHooks : [ LifecycleHooks . OnChanges ] ,
53+ providers : [ new CompileProviderMetadata ( { token : 'token' , useClass : fullTypeMeta } ) ]
5254 } ) ;
5355
5456 } ) ;
0 commit comments