Got Error Expected: Actual
riocolis opened this issue · 2 comments
riocolis commented
i got error
`fromJson should return a valid model when the JSON number is an integer:
ERROR: Expected: NumberTriviaModel:
Actual: NumberTriviaModel:
package:test_api expect
package:flutter_test/src/widget_tester.dart 431:3 expect
test\features\number_trivia\data\models\number_trivia_model_test.dart 30:9 main..`
how to Resolve this ?
riocolis commented
Got it because trivia.json
must be same at NumberTriviaModel
Gegerout commented