Index: utils/tests/pub/validator_test.dart |
diff --git a/utils/tests/pub/validator_test.dart b/utils/tests/pub/validator_test.dart |
index 6f5764a95a4beabf134f6f640d83c019a743f784..1c064bed10dc132682bed064e5de13170051c0e4 100644 |
--- a/utils/tests/pub/validator_test.dart |
+++ b/utils/tests/pub/validator_test.dart |
@@ -531,5 +531,17 @@ main() { |
}); |
}); |
}); |
+ |
+ test('has a hosted dependency on itself', () { |
+ dir(appPath, [ |
+ libPubspec("test_pkg", "1.0.0", [ |
+ {'hosted': {'name': 'test_pkg', 'version': '>=1.0.0'}} |
+ ]) |
+ ]).scheduleCreate(); |
+ |
+ expectValidationWarning(dependency); |
+ |
+ run(); |
+ }); |
}); |
} |