| Index: sdk/lib/_internal/pub_generated/test/snapshot/snapshots_transformed_code_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/snapshot/snapshots_transformed_code_test.dart b/sdk/lib/_internal/pub_generated/test/snapshot/snapshots_transformed_code_test.dart
|
| similarity index 71%
|
| copy from sdk/lib/_internal/pub/test/snapshot/snapshots_transformed_code_test.dart
|
| copy to sdk/lib/_internal/pub_generated/test/snapshot/snapshots_transformed_code_test.dart
|
| index 7c35cdc38be21baffdefe94d34381a46e85c70ea..6defffb7e82e7c66e4c4fb5025a55cb44ff72436 100644
|
| --- a/sdk/lib/_internal/pub/test/snapshot/snapshots_transformed_code_test.dart
|
| +++ b/sdk/lib/_internal/pub_generated/test/snapshot/snapshots_transformed_code_test.dart
|
| @@ -35,28 +35,32 @@ main() {
|
| servePackages((builder) {
|
| builder.serveRepoPackage('barback');
|
|
|
| - builder.serve("foo", "1.2.3",
|
| - deps: {"barback": "any"},
|
| - pubspec: {'transformers': ['foo']},
|
| + builder.serve("foo", "1.2.3", deps: {
|
| + "barback": "any"
|
| + }, pubspec: {
|
| + 'transformers': ['foo']
|
| + },
|
| contents: [
|
| - d.dir("lib", [d.file("foo.dart", REPLACE_TRANSFORMER)]),
|
| - d.dir("bin", [
|
| - d.file("hello.dart", """
|
| + d.dir("lib", [d.file("foo.dart", REPLACE_TRANSFORMER)]),
|
| + d.dir("bin", [d.file("hello.dart", """
|
| final message = 'REPLACE ME';
|
|
|
| void main() => print(message);
|
| -"""),
|
| - ])
|
| - ]);
|
| +"""),])]);
|
| });
|
|
|
| - d.appDir({"foo": "1.2.3"}).create();
|
| + d.appDir({
|
| + "foo": "1.2.3"
|
| + }).create();
|
|
|
| pubGet(output: contains("Precompiled foo:hello."));
|
|
|
| - d.dir(p.join(appPath, '.pub', 'bin'), [
|
| - d.dir('foo', [d.matcherFile('hello.dart.snapshot', contains('hello!'))])
|
| - ]).validate();
|
| + d.dir(
|
| + p.join(appPath, '.pub', 'bin'),
|
| + [
|
| + d.dir(
|
| + 'foo',
|
| + [d.matcherFile('hello.dart.snapshot', contains('hello!'))])]).validate();
|
|
|
| var process = pubRun(args: ['foo:hello']);
|
| process.stdout.expect("hello!");
|
|
|