Fix/set mocks defaults (#54756)
This commit is contained in:
@@ -145,6 +145,15 @@ Future<void> expectToolExitLater(Future<dynamic> future, Matcher messageMatcher)
|
||||
}
|
||||
}
|
||||
|
||||
Matcher containsIgnoringWhitespace(String toSearch) {
|
||||
return predicate(
|
||||
(String source) {
|
||||
return collapseWhitespace(source).contains(collapseWhitespace(toSearch));
|
||||
},
|
||||
'contains "$toSearch" ignoring whitespace.',
|
||||
);
|
||||
}
|
||||
|
||||
/// Executes a test body in zone that does not allow context-based injection.
|
||||
///
|
||||
/// For classes which have been refactored to excluded context-based injection
|
||||
|
||||
Reference in New Issue
Block a user