Index: pkg/analyzer/test/parse_compilation_unit_test.dart |
diff --git a/pkg/analyzer/test/parse_compilation_unit_test.dart b/pkg/analyzer/test/parse_compilation_unit_test.dart |
index 756c2274d3f6018191d199b1e1dd34f4df729f46..bbc05c44fec347513183fa01c8d30fc4f6ce6ba3 100644 |
--- a/pkg/analyzer/test/parse_compilation_unit_test.dart |
+++ b/pkg/analyzer/test/parse_compilation_unit_test.dart |
@@ -15,8 +15,7 @@ void main() { |
test("throws errors for an invalid compilation unit", () { |
expect(() { |
- parseCompilationUnit( |
- "void main() => print('Hello, world!')", |
+ parseCompilationUnit("void main() => print('Hello, world!')", |
name: 'test.dart'); |
}, throwsA(predicate((error) { |
return error is AnalyzerErrorGroup && |
@@ -29,7 +28,9 @@ void main() { |
parseCompilationUnit("void main() => print('Hello, world!')"); |
}, throwsA(predicate((error) { |
return error is AnalyzerErrorGroup && |
- error.toString().contains("Error in <unknown source>: Expected to find ';'"); |
+ error |
+ .toString() |
+ .contains("Error in <unknown source>: Expected to find ';'"); |
}))); |
}); |
} |