| Index: sdk/lib/_internal/pub_generated/test/transformer/exclusion/include_asset_prefix_test.dart
|
| diff --git a/sdk/lib/_internal/pub_generated/test/transformer/exclusion/include_asset_list_test.dart b/sdk/lib/_internal/pub_generated/test/transformer/exclusion/include_asset_prefix_test.dart
|
| similarity index 76%
|
| copy from sdk/lib/_internal/pub_generated/test/transformer/exclusion/include_asset_list_test.dart
|
| copy to sdk/lib/_internal/pub_generated/test/transformer/exclusion/include_asset_prefix_test.dart
|
| index eb2d29ca95d884c5b653bd2c6e3b9269d6f5d692..22f2c7e3d1e82d9a2a1214e0221237d8cd90d45b 100644
|
| --- a/sdk/lib/_internal/pub_generated/test/transformer/exclusion/include_asset_list_test.dart
|
| +++ b/sdk/lib/_internal/pub_generated/test/transformer/exclusion/include_asset_prefix_test.dart
|
| @@ -11,12 +11,12 @@ import '../../serve/utils.dart';
|
| main() {
|
| initConfig();
|
| withBarbackVersions("any", () {
|
| - integration("includes assets", () {
|
| + integration("allows a directory prefix to include", () {
|
| d.dir(appPath, [d.pubspec({
|
| "name": "myapp",
|
| "transformers": [{
|
| "myapp/src/transformer": {
|
| - "\$include": ["web/foo.txt", "web/sub/foo.txt"]
|
| + "\$include": "web/sub"
|
| }
|
| }]
|
| }),
|
| @@ -26,14 +26,16 @@ main() {
|
| [
|
| d.file("foo.txt", "foo"),
|
| d.file("bar.txt", "bar"),
|
| - d.dir("sub", [d.file("foo.txt", "foo"),])])]).create();
|
| + d.dir("sub", [d.file("foo.txt", "foo"),]),
|
| + d.dir("subbub", [d.file("foo.txt", "foo"),])])]).create();
|
|
|
| createLockFile('myapp', pkg: ['barback']);
|
|
|
| pubServe();
|
| - requestShouldSucceed("foo.out", "foo.out");
|
| - requestShouldSucceed("sub/foo.out", "foo.out");
|
| + requestShould404("foo.out");
|
| requestShould404("bar.out");
|
| + requestShouldSucceed("sub/foo.out", "foo.out");
|
| + requestShould404("subbub/foo.out");
|
| endPubServe();
|
| });
|
| });
|
|
|