| Index: sdk/lib/_internal/pub/test/transformer/exclusion/exclude_asset_prefix_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/transformer/exclusion/exclude_asset_list_test.dart b/sdk/lib/_internal/pub/test/transformer/exclusion/exclude_asset_prefix_test.dart
|
| similarity index 79%
|
| copy from sdk/lib/_internal/pub/test/transformer/exclusion/exclude_asset_list_test.dart
|
| copy to sdk/lib/_internal/pub/test/transformer/exclusion/exclude_asset_prefix_test.dart
|
| index 52930390aa482a2a4bb397613e4bdffb877da832..6e2cfaca0da2e8a90bc4addf3e2b6393e3831da7 100644
|
| --- a/sdk/lib/_internal/pub/test/transformer/exclusion/exclude_asset_list_test.dart
|
| +++ b/sdk/lib/_internal/pub/test/transformer/exclusion/exclude_asset_prefix_test.dart
|
| @@ -11,17 +11,14 @@ import '../../serve/utils.dart';
|
| main() {
|
| initConfig();
|
| withBarbackVersions("any", () {
|
| - integration("excludes a list of assets", () {
|
| + integration("allows a directory prefix to exclude", () {
|
| d.dir(appPath, [
|
| d.pubspec({
|
| "name": "myapp",
|
| "transformers": [
|
| {
|
| "myapp/src/transformer": {
|
| - "\$exclude": [
|
| - "web/foo.txt",
|
| - "web/sub/foo.txt"
|
| - ]
|
| + "\$exclude": "web/sub"
|
| }
|
| }
|
| ]
|
| @@ -34,6 +31,9 @@ main() {
|
| d.file("bar.txt", "bar"),
|
| d.dir("sub", [
|
| d.file("foo.txt", "foo"),
|
| + ]),
|
| + d.dir("subbub", [
|
| + d.file("foo.txt", "foo"),
|
| ])
|
| ])
|
| ]).create();
|
| @@ -41,9 +41,10 @@ main() {
|
| createLockFile('myapp', pkg: ['barback']);
|
|
|
| pubServe();
|
| - requestShould404("foo.out");
|
| - requestShould404("sub/foo.out");
|
| + requestShouldSucceed("foo.out", "foo.out");
|
| requestShouldSucceed("bar.out", "bar.out");
|
| + requestShouldSucceed("subbub/foo.out", "foo.out");
|
| + requestShould404("sub/foo.out");
|
| endPubServe();
|
| });
|
| });
|
|
|