chore(transformer): add tests for property bindings and multiple executions

This commit is contained in:
Tobias Bosch
2015-06-05 11:10:54 -07:00
parent 87b3b718e3
commit 8a52375fb8
5 changed files with 29 additions and 15 deletions

View File

@ -92,6 +92,18 @@ void allTests() {
output = await process(new AssetId('a', inputPath));
_formatThenExpectEquals(output, expected);
});
it('should create the same output for multiple calls.', () async {
var inputPath =
'template_compiler/inline_expression_files/hello.ng_deps.dart';
var expected = readFile(
'template_compiler/inline_expression_files/expected/hello.ng_deps.dart');
var output = await process(new AssetId('a', inputPath));
_formatThenExpectEquals(output, expected);
output = await process(new AssetId('a', inputPath));
_formatThenExpectEquals(output, expected);
});
});
}