diff --git a/packages/geometry/test/src/geometry_test.dart b/packages/geometry/test/src/geometry_test.dart index 874b1404..b83d6390 100644 --- a/packages/geometry/test/src/geometry_test.dart +++ b/packages/geometry/test/src/geometry_test.dart @@ -159,7 +159,7 @@ void main() { group('centroid', () { test('throws AssertionError when vertices are empty', () { - expect(() => centroid([]), throwsAssertionError); + expect(() => centroid([]), throwsA(isA())); }); test('is correct when one vertex is given', () {