From 7dd1af24d82a08dd9d975c90c91fe37bcc4c0074 Mon Sep 17 00:00:00 2001 From: Ellet Date: Thu, 14 Nov 2024 13:31:55 +0300 Subject: [PATCH] chore: use getVideo() instead of the soft-deprecated pickVideo() in unit test for consistency Signed-off-by: Ellet --- .../image_picker_macos/test/image_picker_macos_test.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/image_picker/image_picker_macos/test/image_picker_macos_test.dart b/packages/image_picker/image_picker_macos/test/image_picker_macos_test.dart index 4cad84bb9964..8d5bab85cbc6 100644 --- a/packages/image_picker/image_picker_macos/test/image_picker_macos_test.dart +++ b/packages/image_picker/image_picker_macos/test/image_picker_macos_test.dart @@ -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')));