@@ -30,19 +30,19 @@ import 'package:test/test.dart';
3030import 'package:test_process/test_process.dart';
3131
3232void main() {
33- test(" pub get gets dependencies" , () async {
33+ test(' pub get gets dependencies' , () async {
3434 // TestProcess.start() works just like Process.start() from dart:io.
35- var process = await TestProcess.start("pub" , [" get" ]);
35+ var process = await TestProcess.start('dart' , ['pub', ' get' ]);
3636
3737 // StreamQueue.next returns the next line emitted on standard out.
3838 var firstLine = await process.stdout.next;
39- expect(firstLine, equals(" Resolving dependencies..." ));
39+ expect(firstLine, equals(' Resolving dependencies...' ));
4040
4141 // Each call to StreamQueue.next moves one line further.
4242 String next;
4343 do {
4444 next = await process.stdout.next;
45- } while (next != " Got dependencies!" );
45+ } while (next != ' Got dependencies!' );
4646
4747 // Assert that the process exits with code 0.
4848 await process.shouldExit(0);
@@ -61,16 +61,16 @@ import 'package:test/test.dart';
6161import 'package:test_process/test_process.dart';
6262
6363void main() {
64- test(" pub get gets dependencies" , () async {
65- var process = await TestProcess.start("pub" , [" get" ]);
64+ test(' pub get gets dependencies' , () async {
65+ var process = await TestProcess.start('dart' , ['pub', ' get' ]);
6666
6767 // Each stream matcher will consume as many lines as it matches from a
6868 // StreamQueue, and no more, so it's safe to use them in sequence.
69- await expectLater(process.stdout, emits(" Resolving dependencies..." ));
69+ await expectLater(process.stdout, emits(' Resolving dependencies...' ));
7070
7171 // The emitsThrough matcher matches and consumes any number of lines, as
7272 // long as they end with one matching the argument.
73- await expectLater(process.stdout, emitsThrough(" Got dependencies!" ));
73+ await expectLater(process.stdout, emitsThrough(' Got dependencies!' ));
7474
7575 await process.shouldExit(0);
7676 });
0 commit comments