Unverified Commit a27cb145 authored by Andrew Kolos's avatar Andrew Kolos Committed by GitHub

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

Fixes #125782.

Would be nice to figure out a way to put this under test.
parent ff248d23
......@@ -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);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment