rename list->devices, start->run

This commit is contained in:
Devon Carew
2016-02-13 23:50:20 -08:00
parent a724d6cc3d
commit cc72bbc7ec
13 changed files with 46 additions and 35 deletions

View File

@@ -3,7 +3,7 @@
// found in the LICENSE file.
import 'package:flutter_tools/src/android/android_sdk.dart';
import 'package:flutter_tools/src/commands/list.dart';
import 'package:flutter_tools/src/commands/devices.dart';
import 'package:flutter_tools/src/device.dart';
import 'package:test/test.dart';
@@ -13,16 +13,16 @@ import 'src/context.dart';
main() => defineTests();
defineTests() {
group('list', () {
group('devices', () {
testUsingContext('returns 0 when called', () {
ListCommand command = new ListCommand();
DevicesCommand command = new DevicesCommand();
return createTestCommandRunner(command).run(['list']).then((int code) {
expect(code, equals(0));
});
});
testUsingContext('no error when no connected devices', () {
ListCommand command = new ListCommand();
DevicesCommand command = new DevicesCommand();
return createTestCommandRunner(command).run(['list']).then((int code) {
expect(code, equals(0));
expect(testLogger.statusText, contains('No connected devices'));