Revert matcher package (#18614)
The new matcher package deprecates isInstanceOf which seems eggregious.
This commit is contained in:
@@ -34,7 +34,7 @@ dependencies:
|
||||
js: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
||||
kernel: 0.3.0-alpha.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
||||
logging: 0.11.3+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
||||
matcher: 0.12.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
||||
matcher: 0.12.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
||||
mime: 0.9.6+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
||||
multi_server_socket: 1.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
||||
node_preamble: 1.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
||||
@@ -66,6 +66,6 @@ dependencies:
|
||||
|
||||
dev_dependencies:
|
||||
mockito: 3.0.0-alpha+5
|
||||
test: 0.12.42
|
||||
test: 0.12.41
|
||||
|
||||
# PUBSPEC CHECKSUM: 8558
|
||||
# PUBSPEC CHECKSUM: 6256
|
||||
|
||||
@@ -149,7 +149,7 @@ void main() {
|
||||
}
|
||||
|
||||
// Both views should be invalid as they were missing required fields.
|
||||
expect(failingFunction, throwsA(const TypeMatcher<RpcFormatError>()));
|
||||
expect(failingFunction, throwsA(const isInstanceOf<RpcFormatError>()));
|
||||
});
|
||||
|
||||
test('invalid flutter view missing ID', () async {
|
||||
@@ -187,7 +187,7 @@ void main() {
|
||||
}
|
||||
|
||||
// Both views should be invalid as they were missing required fields.
|
||||
expect(failingFunction, throwsA(const TypeMatcher<RpcFormatError>()));
|
||||
expect(failingFunction, throwsA(const isInstanceOf<RpcFormatError>()));
|
||||
});
|
||||
});
|
||||
|
||||
@@ -220,7 +220,7 @@ void main() {
|
||||
await vm.invokeRpc('somesillyfunction', timeout: timeoutTime);
|
||||
}
|
||||
|
||||
expect(failingFunction, throwsA(const TypeMatcher<TimeoutException>()));
|
||||
expect(failingFunction, throwsA(const isInstanceOf<TimeoutException>()));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ void main() {
|
||||
await runner.run('oihaw');
|
||||
}
|
||||
|
||||
expect(failingFunction, throwsA(const TypeMatcher<SshCommandError>()));
|
||||
expect(failingFunction, throwsA(const isInstanceOf<SshCommandError>()));
|
||||
});
|
||||
|
||||
test('verify correct args with config', () async {
|
||||
|
||||
Reference in New Issue
Block a user