Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix test and dartfmt
  • Loading branch information
balvinderz committed Jul 19, 2021
commit 913e8886b55dd378ce1dc049f60805acbe39e4e1
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void main() {

final overrides = ImagePickerPluginTestOverrides()
..createInputElement = ((_, __) => mockInput)
..getFileFromInput = ((_) => textFile);
..getMultipleFilesFromInput = ((_) => [textFile]);

final plugin = ImagePickerPlugin(overrides: overrides);

Expand All @@ -52,7 +52,7 @@ void main() {

final overrides = ImagePickerPluginTestOverrides()
..createInputElement = ((_, __) => mockInput)
..getFileFromInput = ((_) => textFile);
..getMultipleFilesFromInput = ((_) => [textFile]);

final plugin = ImagePickerPlugin(overrides: overrides);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,6 @@ typedef OverrideCreateInputFunction = html.Element Function(
String? capture,
);

/// A function that extracts a [html.File] from the file `input` passed in.
@visibleForTesting
typedef OverrideExtractFilesFromInputFunction = html.File Function(
html.Element? input,
);

/// A function that extracts list of files from the file `input` passed in.
@visibleForTesting
typedef OverrideExtractMultipleFilesFromInputFunction = List<html.File>
Expand All @@ -330,9 +324,6 @@ class ImagePickerPluginTestOverrides {
/// Override the creation of the input element.
late OverrideCreateInputFunction createInputElement;

/// Override the extraction of the selected file from an input element.
late OverrideExtractFilesFromInputFunction getFileFromInput;

/// Override the extraction of the selected files from an input element.
late OverrideExtractMultipleFilesFromInputFunction getMultipleFilesFromInput;
}