OLD | NEW |
(Empty) | |
| 1 library pub_tests; |
| 2 import '../../descriptor.dart' as d; |
| 3 import '../../test_pub.dart'; |
| 4 import '../../serve/utils.dart'; |
| 5 main() { |
| 6 initConfig(); |
| 7 withBarbackVersions("any", () { |
| 8 integration("excludes a list of assets", () { |
| 9 d.dir(appPath, [d.pubspec({ |
| 10 "name": "myapp", |
| 11 "transformers": [{ |
| 12 "myapp/src/transformer": { |
| 13 "\$exclude": ["web/foo.txt", "web/sub/foo.txt"] |
| 14 } |
| 15 }] |
| 16 }), |
| 17 d.dir("lib", [d.dir("src", [d.file("transformer.dart", REWRITE_TRANS
FORMER)])]), |
| 18 d.dir( |
| 19 "web", |
| 20 [ |
| 21 d.file("foo.txt", "foo"), |
| 22 d.file("bar.txt", "bar"), |
| 23 d.dir("sub", [d.file("foo.txt", "foo")])])]).create(); |
| 24 createLockFile('myapp', pkg: ['barback']); |
| 25 pubServe(); |
| 26 requestShould404("foo.out"); |
| 27 requestShould404("sub/foo.out"); |
| 28 requestShouldSucceed("bar.out", "bar.out"); |
| 29 endPubServe(); |
| 30 }); |
| 31 }); |
| 32 } |
OLD | NEW |