style(dart/transform): Change quote character for consistency.
Use ' as a quote character in generated output instead of ".
This commit is contained in:
@@ -15,7 +15,7 @@ import '../common/read_file.dart';
|
||||
var formatter = new DartFormatter();
|
||||
|
||||
void allTests() {
|
||||
test('should preserve parameter annotations as const instances', () {
|
||||
test('should preserve parameter annotations as const instances.', () {
|
||||
var inputPath = 'parameter_metadata/soup.dart';
|
||||
var expected = _readFile('parameter_metadata/expected/soup.ngDeps.dart');
|
||||
var output =
|
||||
|
||||
+3
-3
@@ -9,9 +9,9 @@ void setupReflection(reflector) {
|
||||
_visited = true;
|
||||
reflector
|
||||
..registerType(SoupComponent, {
|
||||
"factory":
|
||||
'factory':
|
||||
(String description, salt) => new SoupComponent(description, salt),
|
||||
"parameters": const [const [Tasty, String], const [const Inject(Salt)]],
|
||||
"annotations": const [const Component(selector: '[soup]')]
|
||||
'parameters': const [const [Tasty, String], const [const Inject(Salt)]],
|
||||
'annotations': const [const Component(selector: '[soup]')]
|
||||
});
|
||||
} // {"version":1,"importOffset":104,"registerOffset":451,"imports":["package:angular2/src/core/annotations/annotations.dart"]}
|
||||
|
||||
Reference in New Issue
Block a user