mirror of
https://github.com/h7x4/unofficial_jisho_api_dart.git
synced 2025-07-24 12:58:58 +02:00
Update tests
This commit is contained in:
@@ -19,7 +19,7 @@ void runTestCases(List<String> testCaseFiles, Function apiFunction) async {
|
||||
final testCase = jsonDecode(file);
|
||||
await test('Test ${testCount}', () async {
|
||||
final result = await apiFunction(testCase['query']);
|
||||
expect(jsonEncode(result), jsonEncode(testCase['expectedResult']));
|
||||
expect(jsonEncode(result), jsonEncode(testCase));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user