Revert matcher package (#18614)
The new matcher package deprecates isInstanceOf which seems eggregious.
This commit is contained in:
@@ -16,7 +16,7 @@ void main() {
|
||||
test('parsePixels', () {
|
||||
expect(parsePixels('23px'), 23);
|
||||
expect(parsePixels('9px'), 9);
|
||||
expect(() { parsePixels('9pt'); }, throwsA(const TypeMatcher<ArgumentError>()));
|
||||
expect(() { parsePixels('9pt'); }, throwsA(isInstanceOf<ArgumentError>()));
|
||||
});
|
||||
|
||||
test('parsePoints', () {
|
||||
|
||||
Reference in New Issue
Block a user