[flutter_plugin_tools] Minor test cleanup (#4120)

- Updates the remaining tests (other than one that still needs to be
  converted to the new base command, which will be fixed then) that
  aren't using runCapturingPrint to do so to reduce test log spam.
- Simplifies and standardizes the matcher used for ToolExit in tests.
This commit is contained in:
stuartmorgan
2021-07-01 18:05:54 -07:00
committed by GitHub
parent edeb10a752
commit 4b77aaff42
8 changed files with 56 additions and 53 deletions

View File

@ -176,7 +176,7 @@ ${devDependenciesSection()}
await expectLater(
result,
throwsA(const TypeMatcher<ToolExit>()),
throwsA(isA<ToolExit>()),
);
});
@ -196,7 +196,7 @@ ${devDependenciesSection()}
await expectLater(
result,
throwsA(const TypeMatcher<ToolExit>()),
throwsA(isA<ToolExit>()),
);
});
@ -216,7 +216,7 @@ ${devDependenciesSection()}
await expectLater(
result,
throwsA(const TypeMatcher<ToolExit>()),
throwsA(isA<ToolExit>()),
);
});
@ -236,7 +236,7 @@ ${devDependenciesSection()}
await expectLater(
result,
throwsA(const TypeMatcher<ToolExit>()),
throwsA(isA<ToolExit>()),
);
});
@ -256,7 +256,7 @@ ${environmentSection()}
await expectLater(
result,
throwsA(const TypeMatcher<ToolExit>()),
throwsA(isA<ToolExit>()),
);
});
@ -276,7 +276,7 @@ ${devDependenciesSection()}
await expectLater(
result,
throwsA(const TypeMatcher<ToolExit>()),
throwsA(isA<ToolExit>()),
);
});
@ -296,7 +296,7 @@ ${dependenciesSection()}
await expectLater(
result,
throwsA(const TypeMatcher<ToolExit>()),
throwsA(isA<ToolExit>()),
);
});
@ -316,7 +316,7 @@ ${dependenciesSection()}
await expectLater(
result,
throwsA(const TypeMatcher<ToolExit>()),
throwsA(isA<ToolExit>()),
);
});
});