Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Unified Diff: test/command_test.dart

Issue 849023002: format code, removed unused variables and deprecated usage (Closed) Base URL: https://github.com/dart-lang/args.git@master
Patch Set: nits Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/command_runner_test.dart ('k') | test/parse_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/command_test.dart
diff --git a/test/command_test.dart b/test/command_test.dart
index ae3594b114a54240b798a601cf462d6ec7f52538..fe3446c03986767a378c6e34dc8e685403f41ea4 100644
--- a/test/command_test.dart
+++ b/test/command_test.dart
@@ -4,7 +4,6 @@
library command_test;
-import 'package:args/args.dart';
import 'package:args/command_runner.dart';
import 'package:unittest/unittest.dart';
import 'utils.dart';
@@ -14,28 +13,25 @@ void main() {
setUp(() {
foo = new FooCommand();
- // Make sure [Command.runner] is set up.
+ // Make sure [Command.runner] is set up.
new CommandRunner("test", "A test command runner.").addCommand(foo);
});
group(".invocation has a sane default", () {
test("without subcommands", () {
- expect(foo.invocation,
- equals("test foo [arguments]"));
+ expect(foo.invocation, equals("test foo [arguments]"));
});
test("with subcommands", () {
foo.addSubcommand(new AsyncCommand());
- expect(foo.invocation,
- equals("test foo <subcommand> [arguments]"));
+ expect(foo.invocation, equals("test foo <subcommand> [arguments]"));
});
test("for a subcommand", () {
var async = new AsyncCommand();
foo.addSubcommand(async);
- expect(async.invocation,
- equals("test foo async [arguments]"));
+ expect(async.invocation, equals("test foo async [arguments]"));
});
});
« no previous file with comments | « test/command_runner_test.dart ('k') | test/parse_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698