OLD | NEW |
(Empty) | |
| 1 library pub_tests; |
| 2 import 'dart:convert'; |
| 3 import '../descriptor.dart' as d; |
| 4 import '../test_pub.dart'; |
| 5 import 'utils.dart'; |
| 6 main() { |
| 7 initConfig(); |
| 8 integration( |
| 9 "gets first if a dependency's source doesn't match the one in " "the lock
file", |
| 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 } |
| 16 }), d.file("pubspec.lock", JSON.encode({ |
| 17 'packages': { |
| 18 'foo': { |
| 19 'version': '0.0.0', |
| 20 'source': 'hosted', |
| 21 'description': 'foo' |
| 22 } |
| 23 } |
| 24 }))]).create(); |
| 25 pubServe(shouldGetFirst: true); |
| 26 requestShouldSucceed("packages/foo/foo.dart", 'main() => "foo";'); |
| 27 endPubServe(); |
| 28 }); |
| 29 } |
OLD | NEW |