Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 952496b

Browse files
daydevmhevery
authored andcommitted
fix(directives): cssUrl in NgComponent
Closes# 418
1 parent 4800d5b commit 952496b

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

test/core/core_directive_spec.dart

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ main() => describe('DirectiveMap', () {
1515
expect(annotations[0] is NgComponent).toBeTruthy();
1616

1717
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');
1829
expect(annotation.map).toEqual({
1930
'foo': '=>foo',
2031
'attr': '@attr',
@@ -60,7 +71,16 @@ main() => describe('DirectiveMap', () {
6071

6172
@NgComponent(
6273
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'],
6484
map: const {
6585
'foo': '=>foo'
6686
}

0 commit comments

Comments
 (0)