Skip to content

Commit

Permalink
chore: use getVideo() instead of the soft-deprecated pickVideo() in u…
Browse files Browse the repository at this point in the history
…nit test for consistency

Signed-off-by: Ellet <echo.ellet@gmail.com>
  • Loading branch information
EchoEllet committed Dec 13, 2024
1 parent 59e3ac9 commit 7dd1af2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,8 @@ void main() {
});

group('videos', () {
// TODO(EchoEllet): (Nit) Should this uses getVideo() instead of the soft-deprecated pickVideo() for consistency?
test('pickVideo passes the accepted type groups correctly', () async {
await plugin.pickVideo(source: ImageSource.gallery);
test('getVideo passes the accepted type groups correctly', () async {
await plugin.getVideo(source: ImageSource.gallery);

final VerificationResult result = verify(mockFileSelectorPlatform
.openFile(acceptedTypeGroups: captureAnyNamed('acceptedTypeGroups')));
Expand Down

0 comments on commit 7dd1af2

Please sign in to comment.