Revert matcher package (#18614)

The new matcher package deprecates isInstanceOf which seems eggregious.
This commit is contained in:
Ian Hickson
2018-06-19 17:22:56 -07:00
committed by GitHub
parent 0f2e50bb87
commit 6599271bf5
73 changed files with 232 additions and 225 deletions

View File

@@ -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>()));
});
});
}

View File

@@ -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 {