mirror of
https://github.com/foss42/apidash.git
synced 2025-06-01 23:45:19 +08:00
Update file_utils_test.dart
This commit is contained in:
@ -3,15 +3,21 @@ import 'package:apidash/utils/file_utils.dart';
|
||||
|
||||
void main() {
|
||||
group(
|
||||
"Testing x function",
|
||||
"Testing File Utils",
|
||||
() {
|
||||
/*test('Test case 2', () {
|
||||
expect(showButtonLabelsInViewCodePane(350), false);
|
||||
test('Test getFileExtension', () {
|
||||
String mimetype = "text/csv";
|
||||
expect(getFileExtension(mimetype), "csv");
|
||||
});
|
||||
|
||||
test('Test case 3', () {
|
||||
expect(showButtonLabelsInViewCodePane(450), true);
|
||||
});*/
|
||||
test('Test getShortPath', () {
|
||||
String path = "A/B/C/D.csv";
|
||||
expect(getShortPath(path), ".../C/D.csv");
|
||||
});
|
||||
|
||||
test('Test getTempFileName', () {
|
||||
expect(getTempFileName().length, greaterThan(0));
|
||||
});
|
||||
},
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user