Index: packages/barback/test/package_graph/transform/consume_input_test.dart |
diff --git a/packages/barback/test/package_graph/transform/consume_input_test.dart b/packages/barback/test/package_graph/transform/consume_input_test.dart |
index 2580f5d128e5e12a4d640777a52cb90577fbd461..4aac1d4e971bd3b851716e3fef25eaa2d14be937 100644 |
--- a/packages/barback/test/package_graph/transform/consume_input_test.dart |
+++ b/packages/barback/test/package_graph/transform/consume_input_test.dart |
@@ -4,7 +4,6 @@ |
library barback.test.package_graph.transform.pass_through_test; |
-import 'package:barback/src/utils.dart'; |
import 'package:scheduled_test/scheduled_test.dart'; |
import '../../utils.dart'; |
@@ -15,7 +14,9 @@ main() { |
initGraph([ |
"app|foo.txt" |
], { |
- "app": [[new RewriteTransformer("txt", "out")..consumePrimary = true]] |
+ "app": [ |
+ [new RewriteTransformer("txt", "out")..consumePrimary = true] |
+ ] |
}); |
updateSources(["app|foo.txt"]); |
@@ -28,10 +29,12 @@ main() { |
initGraph([ |
"app|foo.txt" |
], { |
- "app": [[ |
- new RewriteTransformer("txt", "out")..consumePrimary = true, |
- new RewriteTransformer("txt", "txt") |
- ]] |
+ "app": [ |
+ [ |
+ new RewriteTransformer("txt", "out")..consumePrimary = true, |
+ new RewriteTransformer("txt", "txt") |
+ ] |
+ ] |
}); |
updateSources(["app|foo.txt"]); |
@@ -44,9 +47,9 @@ main() { |
initGraph({ |
"app|foo.txt": "yes" |
}, { |
- "app": [[ |
- new ConditionallyConsumePrimaryTransformer("txt", "out", "yes") |
- ]] |
+ "app": [ |
+ [new ConditionallyConsumePrimaryTransformer("txt", "out", "yes")] |
+ ] |
}); |
updateSources(["app|foo.txt"]); |
@@ -62,11 +65,15 @@ main() { |
}); |
test("two sibling transforms both consume their input", () { |
- initGraph(["app|foo.txt"], { |
- "app": [[ |
- new RewriteTransformer("txt", "one")..consumePrimary = true, |
- new RewriteTransformer("txt", "two")..consumePrimary = true |
- ]] |
+ initGraph([ |
+ "app|foo.txt" |
+ ], { |
+ "app": [ |
+ [ |
+ new RewriteTransformer("txt", "one")..consumePrimary = true, |
+ new RewriteTransformer("txt", "two")..consumePrimary = true |
+ ] |
+ ] |
}); |
updateSources(["app|foo.txt"]); |
@@ -76,15 +83,18 @@ main() { |
buildShouldSucceed(); |
}); |
- test("a transform stops consuming its input but a sibling is still " |
+ test( |
+ "a transform stops consuming its input but a sibling is still " |
"consuming it", () { |
initGraph({ |
"app|foo.txt": "yes" |
}, { |
- "app": [[ |
- new RewriteTransformer("txt", "one")..consumePrimary = true, |
- new ConditionallyConsumePrimaryTransformer("txt", "two", "yes") |
- ]] |
+ "app": [ |
+ [ |
+ new RewriteTransformer("txt", "one")..consumePrimary = true, |
+ new ConditionallyConsumePrimaryTransformer("txt", "two", "yes") |
+ ] |
+ ] |
}); |
updateSources(["app|foo.txt"]); |
@@ -105,7 +115,9 @@ main() { |
initGraph([ |
"app|foo.txt" |
], { |
- "app": [[new EmitNothingTransformer("txt")..consumePrimary = true]] |
+ "app": [ |
+ [new EmitNothingTransformer("txt")..consumePrimary = true] |
+ ] |
}); |
updateSources(["app|foo.txt"]); |
@@ -117,7 +129,9 @@ main() { |
initGraph([ |
"app|foo.txt" |
], { |
- "app": [[new RewriteTransformer("txt", "out")..consumePrimary = true]] |
+ "app": [ |
+ [new RewriteTransformer("txt", "out")..consumePrimary = true] |
+ ] |
}); |
updateSources(["app|foo.txt"]); |
@@ -131,12 +145,13 @@ main() { |
buildShouldSucceed(); |
}); |
- test("a transform consumes its input and emits nothing, then is removed", |
- () { |
+ test("a transform consumes its input and emits nothing, then is removed", () { |
initGraph([ |
"app|foo.txt" |
], { |
- "app": [[new EmitNothingTransformer("txt")..consumePrimary = true]] |
+ "app": [ |
+ [new EmitNothingTransformer("txt")..consumePrimary = true] |
+ ] |
}); |
updateSources(["app|foo.txt"]); |
@@ -160,11 +175,11 @@ main() { |
expectAsset("app|foo.txt", "foo"); |
buildShouldSucceed(); |
- updateTransformers("app", [[ |
- new RewriteTransformer("txt", "out")..consumePrimary = true |
- ]]); |
+ updateTransformers("app", [ |
+ [new RewriteTransformer("txt", "out")..consumePrimary = true] |
+ ]); |
expectAsset("app|foo.out", "foo.out"); |
expectNoAsset("app|foo.txt"); |
buildShouldSucceed(); |
}); |
-} |
+} |