Fix broken test
This commit is contained in:
parent
1a3c923c43
commit
33e453da91
1 changed files with 2 additions and 2 deletions
|
@ -24,8 +24,8 @@ void main() {
|
|||
pokemonType.validate('@root', x as Map<String, dynamic>).successful,
|
||||
'is a valid Pokémon');
|
||||
|
||||
var throwsATypeError =
|
||||
throwsA(predicate((x) => x is TypeError, 'is a type error'));
|
||||
var throwsATypeError = throwsA(predicate(
|
||||
(x) => x is TypeError || x is CastError, 'is a type or cast error'));
|
||||
|
||||
test('object accepts valid input', () {
|
||||
expect({'name': 'Charmander', 'type': 'FIRE'}, isValidPokemon);
|
||||
|
|
Loading…
Reference in a new issue