@@ -15,6 +15,17 @@ main() => describe('DirectiveMap', () {
15
15
expect (annotations[0 ] is NgComponent ).toBeTruthy ();
16
16
17
17
NgComponent annotation = annotations[0 ];
18
+ expect (annotation.selector).toEqual ('annotated-io' );
19
+ expect (annotation.visibility).toEqual (NgDirective .LOCAL_VISIBILITY );
20
+ expect (annotation.exportExpressions).toEqual (['exportExpressions' ]);
21
+ expect (annotation.publishTypes).toEqual ([String ]);
22
+ expect (annotation.template).toEqual ('template' );
23
+ expect (annotation.templateUrl).toEqual ('templateUrl' );
24
+ expect (annotation.cssUrl).toEqual ('cssUrl' );
25
+ expect (annotation.cssUrls).toEqual (['cssUrls' ]);
26
+ expect (annotation.applyAuthorStyles).toEqual (true );
27
+ expect (annotation.resetStyleInheritance).toEqual (true );
28
+ expect (annotation.publishAs).toEqual ('ctrl' );
18
29
expect (annotation.map).toEqual ({
19
30
'foo' : '=>foo' ,
20
31
'attr' : '@attr' ,
@@ -60,7 +71,16 @@ main() => describe('DirectiveMap', () {
60
71
61
72
@NgComponent (
62
73
selector: 'annotated-io' ,
63
- template: r'<content></content>' ,
74
+ template: 'template' ,
75
+ templateUrl: 'templateUrl' ,
76
+ cssUrl: 'cssUrl' ,
77
+ cssUrls: const ['cssUrls' ],
78
+ applyAuthorStyles: true ,
79
+ resetStyleInheritance: true ,
80
+ publishAs: 'ctrl' ,
81
+ publishTypes: const [String ],
82
+ visibility: NgDirective .LOCAL_VISIBILITY ,
83
+ exportExpressions: const ['exportExpressions' ],
64
84
map: const {
65
85
'foo' : '=>foo'
66
86
}
0 commit comments