From d6af94de725cad8d06c6d7ee3b2d27122e23fa6c Mon Sep 17 00:00:00 2001 From: alestiago Date: Mon, 14 Mar 2022 13:56:17 +0000 Subject: [PATCH] refactor: removed throwsAssertionError for throwsA matcher --- packages/geometry/test/src/geometry_test.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', () {