| Index: packages/barback/test/package_graph/source_test.dart
|
| diff --git a/packages/barback/test/package_graph/source_test.dart b/packages/barback/test/package_graph/source_test.dart
|
| index b5763a8136ab366eae133a0ab1b4c3bca940ed39..8b8aecb71101c8398577c97fd7fe98b4a0cc1489 100644
|
| --- a/packages/barback/test/package_graph/source_test.dart
|
| +++ b/packages/barback/test/package_graph/source_test.dart
|
| @@ -41,9 +41,13 @@ main() {
|
| });
|
|
|
| test("gets a source asset if not transformed", () {
|
| - initGraph(["app|foo.txt"], {"app": [
|
| - [new RewriteTransformer("nottxt", "whatever")]
|
| - ]});
|
| + initGraph([
|
| + "app|foo.txt"
|
| + ], {
|
| + "app": [
|
| + [new RewriteTransformer("nottxt", "whatever")]
|
| + ]
|
| + });
|
|
|
| updateSources(["app|foo.txt"]);
|
| expectAsset("app|foo.txt");
|
| @@ -64,7 +68,13 @@ main() {
|
|
|
| test("collapses redundant updates", () {
|
| var transformer = new RewriteTransformer("blub", "blab");
|
| - initGraph(["app|foo.blub"], {"app": [[transformer]]});
|
| + initGraph([
|
| + "app|foo.blub"
|
| + ], {
|
| + "app": [
|
| + [transformer]
|
| + ]
|
| + });
|
|
|
| schedule(() {
|
| // Make a bunch of synchronous update calls.
|
| @@ -122,7 +132,14 @@ main() {
|
|
|
| test("restarts a build if a source is updated while sources are loading", () {
|
| var transformer = new RewriteTransformer("txt", "out");
|
| - initGraph(["app|foo.txt", "app|other.bar"], {"app": [[transformer]]});
|
| + initGraph([
|
| + "app|foo.txt",
|
| + "app|other.bar"
|
| + ], {
|
| + "app": [
|
| + [transformer]
|
| + ]
|
| + });
|
|
|
| // Run the whole graph so all nodes are clean.
|
| updateSources(["app|foo.txt", "app|other.bar"]);
|
|
|