refactor: removed throwsAssertionError for throwsA matcher

pull/38/head
alestiago 4 years ago
parent a5accacd37
commit d6af94de72

@ -159,7 +159,7 @@ void main() {
group('centroid', () {
test('throws AssertionError when vertices are empty', () {
expect(() => centroid([]), throwsAssertionError);
expect(() => centroid([]), throwsA(isA<AssertionError>()));
});
test('is correct when one vertex is given', () {

Loading…
Cancel
Save