Skip to content

Commit a27cb14

Browse files
authored
[tools] fix expect calls in FakeCommand (#125783)
Fixes #125782. Would be nice to figure out a way to put this under test.
1 parent ff248d2 commit a27cb14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/flutter_tools/test/src/fake_process_manager.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ class FakeCommand {
111111
final List<dynamic> matchers = this.command.map((Pattern x) => x is String ? x : matches(x)).toList();
112112
expect(command, matchers);
113113
if (this.workingDirectory != null) {
114-
expect(this.workingDirectory, workingDirectory);
114+
expect(workingDirectory, this.workingDirectory);
115115
}
116116
if (this.environment != null) {
117-
expect(this.environment, environment);
117+
expect(environment, this.environment);
118118
}
119119
if (this.encoding != null) {
120-
expect(this.encoding, encoding);
120+
expect(encoding, this.encoding);
121121
}
122122
}
123123
}

0 commit comments

Comments
 (0)