Index: sdk/lib/_internal/pub/test/global/activate/unexpected_arguments_test.dart |
diff --git a/sdk/lib/_internal/pub/test/global/activate/unexpected_arguments_test.dart b/sdk/lib/_internal/pub/test/global/activate/unexpected_arguments_test.dart |
index 5d519177335f3298556b39ed51914ab36c347945..24d0e2ce52eddc0e2bad47e704dcee116cd08d79 100644 |
--- a/sdk/lib/_internal/pub/test/global/activate/unexpected_arguments_test.dart |
+++ b/sdk/lib/_internal/pub/test/global/activate/unexpected_arguments_test.dart |
@@ -2,6 +2,8 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
+import 'package:scheduled_test/scheduled_test.dart'; |
+ |
import '../../../lib/src/exit_codes.dart' as exit_codes; |
import '../../test_pub.dart'; |
@@ -9,15 +11,7 @@ main() { |
initConfig(); |
integration('fails if there are extra arguments', () { |
schedulePub(args: ["global", "activate", "foo", "1.0.0", "bar", "baz"], |
- error: """ |
- Unexpected arguments "bar" and "baz". |
- |
- Usage: pub global activate <package...> |
- -h, --help Print usage information for this command. |
- -s, --source The source used to find the package. |
- [git, hosted (default), path] |
- |
- Run "pub help" to see global options.""", |
+ error: contains('Unexpected arguments "bar" and "baz".'), |
exitCode: exit_codes.USAGE); |
}); |
} |