OLD | NEW |
(Empty) | |
| 1 import 'package:path/path.dart' as p; |
| 2 import '../../../lib/src/exit_codes.dart' as exit_codes; |
| 3 import '../../descriptor.dart' as d; |
| 4 import '../../test_pub.dart'; |
| 5 main() { |
| 6 initConfig(); |
| 7 integration('path dependency to an empty pubspec', () { |
| 8 d.dir('foo', [d.libDir('foo'), d.file('pubspec.yaml', '')]).create(); |
| 9 d.dir(appPath, [d.appPubspec({ |
| 10 "foo": { |
| 11 "path": "../foo" |
| 12 } |
| 13 })]).create(); |
| 14 pubGet( |
| 15 exitCode: exit_codes.DATA, |
| 16 error: 'Error on line 1, column 1 of ${p.join('..', 'foo', 'pubspec.yaml
')}: ' |
| 17 'Missing the required "name" field.'); |
| 18 }); |
| 19 } |
OLD | NEW |