Update file_utils_test.dart

This commit is contained in:
Ashita Prasad
2024-01-08 09:22:56 +05:30
parent 3f31549d37
commit 2cad2c182c

View File

@ -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));
});
},
);
}