OLD | NEW |
(Empty) | |
| 1 library pub_tests; |
| 2 import '../descriptor.dart' as d; |
| 3 import '../test_pub.dart'; |
| 4 import 'utils.dart'; |
| 5 main() { |
| 6 initConfig(); |
| 7 integration("serves web/ and test/ dirs by default", () { |
| 8 d.dir( |
| 9 appPath, |
| 10 [ |
| 11 d.appPubspec(), |
| 12 d.dir("web", [d.file("foo", "contents")]), |
| 13 d.dir("test", [d.file("bar", "contents")]), |
| 14 d.dir("example", [d.file("baz", "contents")])]).create(); |
| 15 pubServe(); |
| 16 requestShouldSucceed("foo", "contents", root: "web"); |
| 17 requestShouldSucceed("bar", "contents", root: "test"); |
| 18 requestShould404("baz", root: "web"); |
| 19 endPubServe(); |
| 20 }); |
| 21 } |
OLD | NEW |