1
0
mirror of https://github.com/h7x4/unofficial_jisho_api_dart.git synced 2025-09-21 04:55:56 +02:00

Fix JSON encoding

This commit is contained in:
2020-06-15 11:14:03 +02:00
parent cbbd60f4c3
commit aa29d73477
3 changed files with 50 additions and 21 deletions

View File

@@ -20,7 +20,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(result, testCase['expectedResult']);
expect(jsonEncode(result), jsonEncode(testCase['expectedResult']));
});
}
}