1
0
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:
2020-06-23 12:04:31 +02:00
parent d65550a502
commit 5a902d944c
20 changed files with 3951 additions and 3948 deletions

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