OLD | NEW |
(Empty) | |
| 1 library pub_tests; |
| 2 import '../descriptor.dart' as d; |
| 3 import '../test_pub.dart'; |
| 4 main() { |
| 5 initConfig(); |
| 6 integration( |
| 7 "downgrades a locked package's dependers in order to get it to " "min vers
ion", |
| 8 () { |
| 9 servePackages((builder) { |
| 10 builder.serve("foo", "2.0.0", deps: { |
| 11 "bar": ">1.0.0" |
| 12 }); |
| 13 builder.serve("bar", "2.0.0"); |
| 14 }); |
| 15 d.appDir({ |
| 16 "foo": "any", |
| 17 "bar": "any" |
| 18 }).create(); |
| 19 pubGet(); |
| 20 d.packagesDir({ |
| 21 "foo": "2.0.0", |
| 22 "bar": "2.0.0" |
| 23 }).validate(); |
| 24 servePackages((builder) { |
| 25 builder.serve("foo", "1.0.0", deps: { |
| 26 "bar": "any" |
| 27 }); |
| 28 builder.serve("bar", "1.0.0"); |
| 29 }); |
| 30 pubDowngrade(args: ['bar']); |
| 31 d.packagesDir({ |
| 32 "foo": "1.0.0", |
| 33 "bar": "1.0.0" |
| 34 }).validate(); |
| 35 }); |
| 36 } |
OLD | NEW |