Update package:test dependencies to 0.12.18+2 (#8247)

This commit is contained in:
Todd Volkert
2017-02-17 17:35:11 -08:00
committed by GitHub
parent 4e531f64c6
commit c233f38291
15 changed files with 56 additions and 52 deletions

View File

@@ -37,8 +37,8 @@ void updateFileModificationTime(String path,
/// Matcher for functions that throw ToolExit.
Matcher throwsToolExit([int exitCode]) {
return exitCode == null
? const Throws(isToolExit)
: new Throws(allOf(isToolExit, (ToolExit e) => e.exitCode == exitCode));
? throwsA(isToolExit)
: throwsA(allOf(isToolExit, (ToolExit e) => e.exitCode == exitCode));
}
/// Matcher for [ToolExit]s.