| Index: sdk/lib/_internal/pub_generated/test/validator/sdk_constraint_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/validator/sdk_constraint_test.dart b/sdk/lib/_internal/pub_generated/test/validator/sdk_constraint_test.dart
|
| similarity index 73%
|
| copy from sdk/lib/_internal/pub/test/validator/sdk_constraint_test.dart
|
| copy to sdk/lib/_internal/pub_generated/test/validator/sdk_constraint_test.dart
|
| index 4efb822037812bc33d33ca2634b05f00682a9310..27c568a4f769a4fd7c9213d71293757a86c06895 100644
|
| --- a/sdk/lib/_internal/pub/test/validator/sdk_constraint_test.dart
|
| +++ b/sdk/lib/_internal/pub_generated/test/validator/sdk_constraint_test.dart
|
| @@ -18,7 +18,7 @@ import '../test_pub.dart';
|
| import 'utils.dart';
|
|
|
| Validator sdkConstraint(Entrypoint entrypoint) =>
|
| - new SdkConstraintValidator(entrypoint);
|
| + new SdkConstraintValidator(entrypoint);
|
|
|
| main() {
|
| initConfig();
|
| @@ -30,19 +30,19 @@ main() {
|
| });
|
|
|
| integration('has an SDK constraint without ^', () {
|
| - d.dir(appPath, [
|
| - d.libPubspec("test_pkg", "1.0.0", sdk: ">=1.8.0 <2.0.0")
|
| - ]).create();
|
| + d.dir(
|
| + appPath,
|
| + [d.libPubspec("test_pkg", "1.0.0", sdk: ">=1.8.0 <2.0.0")]).create();
|
| expectNoValidationError(sdkConstraint);
|
| });
|
| });
|
|
|
| - test("should consider a package invalid if it has an SDK constraint with "
|
| - "^", () {
|
| - d.dir(appPath, [
|
| - d.libPubspec("test_pkg", "1.0.0", sdk: "^1.8.0")
|
| - ]).create();
|
| - expect(schedulePackageValidation(sdkConstraint),
|
| + test(
|
| + "should consider a package invalid if it has an SDK constraint with " "^",
|
| + () {
|
| + d.dir(appPath, [d.libPubspec("test_pkg", "1.0.0", sdk: "^1.8.0")]).create();
|
| + expect(
|
| + schedulePackageValidation(sdkConstraint),
|
| completion(pairOf(anyElement(contains('">=1.8.0 <2.0.0"')), isEmpty)));
|
| });
|
| }
|
|
|