[tools] fix expect calls in FakeCommand (#125783)

Fixes #125782.

Would be nice to figure out a way to put this under test.
This commit is contained in:
Andrew Kolos
2023-05-01 11:21:36 -07:00
committed by GitHub
parent ff248d2346
commit a27cb145c7

View File

@@ -111,13 +111,13 @@ class FakeCommand {
final List<dynamic> matchers = this.command.map((Pattern x) => x is String ? x : matches(x)).toList();
expect(command, matchers);
if (this.workingDirectory != null) {
expect(this.workingDirectory, workingDirectory);
expect(workingDirectory, this.workingDirectory);
}
if (this.environment != null) {
expect(this.environment, environment);
expect(environment, this.environment);
}
if (this.encoding != null) {
expect(this.encoding, encoding);
expect(encoding, this.encoding);
}
}
}