mirror of
https://github.com/flutter/packages.git
synced 2025-06-06 11:29:17 +08:00
[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:
@ -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>()),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user