refactor(dart/transform tests): Use actual directive def'n instead of mock.

In the transformer unit tests, we previously used a mock directive annotation. This update
substitutes the actual Angular2 directive annotations.

Closes #706
This commit is contained in:
Tim Blasi
2015-02-19 10:20:38 -08:00
committed by Misko Hevery
parent 85211f0a6b
commit 329b2eda66
18 changed files with 53 additions and 91 deletions
@@ -5,10 +5,10 @@ import 'index.dart' as i2;
main() {
reflector
..registerType(i0.Component, {
"factory": () => new i0.Component(),
..registerType(i0.MyComponent, {
"factory": () => new i0.MyComponent(),
"parameters": const [const []],
"annotations": const [const i1.Directive(context: 'soup')]
"annotations": const [const i1.Component(selector: '[soup]')]
});
i2.main();
}