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("gets first if a dependency is not in the lock file", () { |
| 8 d.dir("foo", [d.libPubspec("foo", "0.0.1"), d.libDir("foo")]).create(); |
| 9 d.dir(appPath, [d.appPubspec()]).create(); |
| 10 pubGet(); |
| 11 d.dir(appPath, [d.appPubspec({ |
| 12 "foo": { |
| 13 "path": "../foo" |
| 14 } |
| 15 })]).create(); |
| 16 pubServe(shouldGetFirst: true); |
| 17 requestShouldSucceed("packages/foo/foo.dart", 'main() => "foo";'); |
| 18 endPubServe(); |
| 19 }); |
| 20 } |
OLD | NEW |