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:
@@ -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']));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user