| Index: test/pubspec_test.dart
|
| diff --git a/test/pubspec_test.dart b/test/pubspec_test.dart
|
| index 6a24d8ae838c787ffd93cae4aa8d437853cbbbe0..54be75b00828d696fecb537278380d6c4942f71b 100644
|
| --- a/test/pubspec_test.dart
|
| +++ b/test/pubspec_test.dart
|
| @@ -229,6 +229,14 @@ dependencies:
|
| ''', (pubspec) => pubspec.dependencies);
|
| });
|
|
|
| + test("throws if there's no source", () {
|
| + expectPubspecException('''
|
| +dependencies:
|
| + foo:
|
| + version: 1.2.3
|
| +''', (pubspec) => pubspec.dependencies);
|
| + });
|
| +
|
| test("throws if 'name' is not a string", () {
|
| expectPubspecException('name: [not, a, string]',
|
| (pubspec) => pubspec.name);
|
|
|