use isA<Xxx>() matcher (#48482)

This commit is contained in:
Alexandre Ardhuin
2020-01-16 21:43:03 +01:00
committed by Flutter GitHub Bot
parent 5eb394e084
commit 003541499b
138 changed files with 433 additions and 450 deletions

View File

@@ -17,7 +17,7 @@ void main() {
test('parsePixels', () {
expect(parsePixels('23px'), 23);
expect(parsePixels('9px'), 9);
expect(() { parsePixels('9pt'); }, throwsA(isInstanceOf<ArgumentError>()));
expect(() { parsePixels('9pt'); }, throwsArgumentError);
});
test('parsePoints', () {