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( |
| 8 "does not get if the locked version of a dependency is allowed " |
| 9 "by the pubspec's constraint", |
| 10 () { |
| 11 d.dir("foo", [d.libPubspec("foo", "0.0.1"), d.libDir("foo")]).create(); |
| 12 d.dir(appPath, [d.appPubspec({ |
| 13 "foo": { |
| 14 "path": "../foo", |
| 15 "version": ">=0.0.1" |
| 16 } |
| 17 })]).create(); |
| 18 pubGet(); |
| 19 d.dir(appPath, [d.appPubspec({ |
| 20 "foo": { |
| 21 "path": "../foo", |
| 22 "version": "<2.0.0" |
| 23 } |
| 24 })]).create(); |
| 25 pubServe(shouldGetFirst: false); |
| 26 requestShouldSucceed("packages/foo/foo.dart", 'main() => "foo";'); |
| 27 endPubServe(); |
| 28 }); |
| 29 } |
OLD | NEW |