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

Commit

Permalink
test(io): Make the source metadata extractor test tighter
Browse files Browse the repository at this point in the history
  • Loading branch information
jbdeboer committed Apr 10, 2014
1 parent 90b576b commit f82f602
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion test/io/source_metadata_extractor_spec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void main() {
sourceMetadataExtractor
.gatherDirectiveInfo('test/io/test_files/main.dart', sourceCrawler);

expect(directives, hasLength(4));
expect(directives.map((d) => d.selector), unorderedEquals(['[ng-if]', 'my-component']));

DirectiveInfo info = directives.elementAt(1);
expect(info.expressionAttrs, unorderedEquals(['expr', 'another-expression',
Expand Down
2 changes: 0 additions & 2 deletions test/io/test_files/main.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
library test_files.main;

import 'package:angular/core/module.dart';

@NgDirective(
children: NgAnnotation.TRANSCLUDE_CHILDREN,
selector:'[ng-if]',
Expand Down

0 comments on commit f82f602

Please sign in to comment.