mirror of
https://github.com/h7x4/unofficial_jisho_api_dart.git
synced 2025-10-06 04:53:58 +02:00
Upgrade to 2.0.0, see changelog
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
import 'package:path/path.dart' as path;
|
||||
|
||||
import 'package:unofficial_jisho_api/api.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
import 'package:test/test.dart';
|
||||
import 'package:unofficial_jisho_api/api.dart';
|
||||
|
||||
List<String> getFilePaths(String dirname) {
|
||||
final currentdir = Directory.current.path;
|
||||
final testDir = path.join(currentdir, 'test', dirname);
|
||||
final filenames = Directory(testDir).listSync();
|
||||
return filenames.map((filename) => path.join(testDir, filename.path)).toList();
|
||||
return filenames
|
||||
.map((filename) => path.join(testDir, filename.path))
|
||||
.toList();
|
||||
}
|
||||
|
||||
List getTestCases(String directoryName) {
|
||||
@@ -53,4 +55,4 @@ void main() {
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user