-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Select input name instead of file in
ParseFile
(#1012)
- Loading branch information
1 parent
3274981
commit 2876168
Showing
7 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import 'dart:io'; | ||
import 'package:parse_server_sdk/parse_server_sdk.dart'; | ||
import 'package:test/test.dart'; | ||
|
||
import '../../test_utils.dart'; | ||
|
||
void main() { | ||
setUpAll(() async { | ||
await initializeParse(); | ||
}); | ||
|
||
group('Parse X File', () { | ||
test('should return a correct name', () { | ||
File file = File('/sdcard/aa/aa.jpg'); | ||
final parseFile = ParseFile(file, name: 'bb.jpg'); | ||
expect(parseFile.name, 'bb.jpg'); | ||
}); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import 'package:cross_file/cross_file.dart'; | ||
import 'package:parse_server_sdk/parse_server_sdk.dart'; | ||
import 'package:test/test.dart'; | ||
|
||
import '../../test_utils.dart'; | ||
|
||
void main() { | ||
setUpAll(() async { | ||
await initializeParse(); | ||
}); | ||
|
||
group('Parse X File', () { | ||
test('should return a correct name', () { | ||
XFile file = XFile('/sdcard/aa/aa.jpg'); | ||
final parseFile = ParseXFile(file, name: 'bb.jpg'); | ||
expect(parseFile.name, 'bb.jpg'); | ||
}); | ||
}); | ||
} |