Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xvrh committed Jun 6, 2024
1 parent af61fdc commit a061837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared_aws_api/test/validation/number_validation_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ void main() {

test('+inf is at most a RangeError', () {
expect(() => validateNumRange('name', double.infinity, 0, 1),
throwsA(TypeMatcher<RangeError>()));
throwsA(TypeMatcher<ArgumentError>()));
});

test('-inf is at most a RangeError', () {
expect(() => validateNumRange('name', double.negativeInfinity, 0, 1),
throwsA(TypeMatcher<RangeError>()));
throwsA(TypeMatcher<ArgumentError>()));
});
});
}

0 comments on commit a061837

Please sign in to comment.