mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 13:51:20 +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() {
|
void main() {
|
||||||
group(
|
group(
|
||||||
"Testing x function",
|
"Testing File Utils",
|
||||||
() {
|
() {
|
||||||
/*test('Test case 2', () {
|
test('Test getFileExtension', () {
|
||||||
expect(showButtonLabelsInViewCodePane(350), false);
|
String mimetype = "text/csv";
|
||||||
|
expect(getFileExtension(mimetype), "csv");
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Test case 3', () {
|
test('Test getShortPath', () {
|
||||||
expect(showButtonLabelsInViewCodePane(450), true);
|
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