| Index: sdk/lib/_internal/pub_generated/test/validator/executable_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/validator/executable_test.dart b/sdk/lib/_internal/pub_generated/test/validator/executable_test.dart
|
| similarity index 78%
|
| copy from sdk/lib/_internal/pub/test/validator/executable_test.dart
|
| copy to sdk/lib/_internal/pub_generated/test/validator/executable_test.dart
|
| index 6d1fb81615d425577c7d429fbd23bcffbeebb5e5..995fef909077ceb248e29d9ca14075cfbc037b4d 100644
|
| --- a/sdk/lib/_internal/pub/test/validator/executable_test.dart
|
| +++ b/sdk/lib/_internal/pub_generated/test/validator/executable_test.dart
|
| @@ -12,7 +12,7 @@ import '../test_pub.dart';
|
| import 'utils.dart';
|
|
|
| Validator executable(Entrypoint entrypoint) =>
|
| - new ExecutableValidator(entrypoint);
|
| + new ExecutableValidator(entrypoint);
|
|
|
| main() {
|
| initConfig();
|
| @@ -21,8 +21,7 @@ main() {
|
|
|
| group('should consider a package valid if it', () {
|
| integration('has executables that are present', () {
|
| - d.dir(appPath, [
|
| - d.pubspec({
|
| + d.dir(appPath, [d.pubspec({
|
| "name": "test_pkg",
|
| "version": "1.0.0",
|
| "executables": {
|
| @@ -30,27 +29,25 @@ main() {
|
| "two": null
|
| }
|
| }),
|
| - d.dir("bin", [
|
| - d.file("one_script.dart", "main() => print('ok');"),
|
| - d.file("two.dart", "main() => print('ok');")
|
| - ])
|
| - ]).create();
|
| + d.dir(
|
| + "bin",
|
| + [
|
| + d.file("one_script.dart", "main() => print('ok');"),
|
| + d.file("two.dart", "main() => print('ok');")])]).create();
|
| expectNoValidationError(executable);
|
| });
|
| });
|
|
|
| group("should consider a package invalid if it", () {
|
| integration('is missing one or more listed executables', () {
|
| - d.dir(appPath, [
|
| - d.pubspec({
|
| + d.dir(appPath, [d.pubspec({
|
| "name": "test_pkg",
|
| "version": "1.0.0",
|
| "executables": {
|
| "nope": "not_there",
|
| "nada": null
|
| }
|
| - })
|
| - ]).create();
|
| + })]).create();
|
| expectValidationWarning(executable);
|
| });
|
| });
|
|
|