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("responds with a 404 on incomplete special URLs", () { |
| 8 d.dir("foo", [d.libPubspec("foo", "0.0.1")]).create(); |
| 9 d.dir(appPath, [d.appPubspec({ |
| 10 "foo": { |
| 11 "path": "../foo" |
| 12 } |
| 13 }), |
| 14 d.dir("lib", [d.file("packages")]), |
| 15 d.dir("web", [d.file("packages")])]).create(); |
| 16 pubGet(); |
| 17 pubServe(); |
| 18 requestShould404("packages"); |
| 19 requestShould404("packages/"); |
| 20 requestShould404("packages/myapp"); |
| 21 requestShould404("packages/myapp/"); |
| 22 requestShould404("packages/foo"); |
| 23 requestShould404("packages/foo/"); |
| 24 requestShould404("packages/unknown"); |
| 25 requestShould404("packages/unknown/"); |
| 26 endPubServe(); |
| 27 }); |
| 28 } |
OLD | NEW |