@@ -98,7 +98,7 @@ void main() {
98
98
processRunner.recordedCalls,
99
99
orderedEquals (< ProcessCall > [
100
100
ProcessCall (
101
- getFlutterCommand (mockPlatform) ,
101
+ 'dart' ,
102
102
< String > ['format' , ...getPackagesDirRelativePaths (plugin, files)],
103
103
packagesDir.path),
104
104
]));
@@ -132,7 +132,7 @@ void main() {
132
132
processRunner.recordedCalls,
133
133
orderedEquals (< ProcessCall > [
134
134
ProcessCall (
135
- getFlutterCommand (mockPlatform) ,
135
+ 'dart' ,
136
136
< String > [
137
137
'format' ,
138
138
...getPackagesDirRelativePaths (plugin, formattedFiles)
@@ -141,16 +141,17 @@ void main() {
141
141
]));
142
142
});
143
143
144
- test ('fails if flutter format fails' , () async {
144
+ test ('fails if dart format fails' , () async {
145
145
const List <String > files = < String > [
146
146
'lib/a.dart' ,
147
147
'lib/src/b.dart' ,
148
148
'lib/src/c.dart' ,
149
149
];
150
150
createFakePlugin ('a_plugin' , packagesDir, extraFiles: files);
151
151
152
- processRunner.mockProcessesForExecutable[getFlutterCommand (mockPlatform)] =
153
- < io.Process > [MockProcess (exitCode: 1 )];
152
+ processRunner.mockProcessesForExecutable['dart' ] = < io.Process > [
153
+ MockProcess (exitCode: 1 )
154
+ ];
154
155
Error ? commandError;
155
156
final List <String > output = await runCapturingPrint (
156
157
runner, < String > ['format' ], errorHandler: (Error e) {
@@ -465,7 +466,7 @@ void main() {
465
466
],
466
467
packagesDir.path),
467
468
ProcessCall (
468
- getFlutterCommand (mockPlatform) ,
469
+ 'dart' ,
469
470
< String > [
470
471
'format' ,
471
472
...getPackagesDirRelativePaths (plugin, dartFiles)
@@ -594,7 +595,7 @@ void main() {
594
595
processRunner.recordedCalls,
595
596
contains (
596
597
ProcessCall (
597
- getFlutterCommand (mockPlatform) ,
598
+ 'dart' ,
598
599
< String > [
599
600
'format' ,
600
601
'$pluginName \\ $extraFile ' ,
@@ -651,7 +652,7 @@ void main() {
651
652
processRunner.recordedCalls,
652
653
contains (
653
654
ProcessCall (
654
- getFlutterCommand (mockPlatform) ,
655
+ 'dart' ,
655
656
< String > [
656
657
'format' ,
657
658
'$pluginName /$extraFile ' ,
0 commit comments