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("gets first if a dev dependency has changed", () { |
| 9 d.dir("foo", [d.libPubspec("foo", "0.0.1"), d.libDir("foo")]).create(); |
| 10 d.dir(appPath, [d.pubspec({ |
| 11 "name": "myapp", |
| 12 "dev_dependencies": { |
| 13 "foo": { |
| 14 "path": "../foo" |
| 15 } |
| 16 } |
| 17 }), d.file("pubspec.lock", JSON.encode({ |
| 18 'packages': {} |
| 19 }))]).create(); |
| 20 pubServe(shouldGetFirst: true); |
| 21 requestShouldSucceed("packages/foo/foo.dart", 'main() => "foo";'); |
| 22 endPubServe(); |
| 23 }); |
| 24 } |
OLD | NEW |