Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
SpeedReach committed Oct 6, 2023
1 parent d59f8ad commit d46dc75
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions dio/test/upload_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,9 @@ void main() {
);

test('send progress', () async {
final data = [
'aaaa',
'hello 😌',
'dio is a dart http client'
];
final data = ['aaaa', 'hello 😌', 'dio is a dart http client'];
final stream = Stream.fromIterable(data.map((e) => e.codeUnits));
final expanded = data.expand((element) =>element.codeUnits);
final expanded = data.expand((element) => element.codeUnits);
final List<int> collected = [];
final _ = await dio.put(
'/put',
Expand All @@ -122,7 +118,8 @@ void main() {
),
);
for (int i = 0; i < data.length; i++) {
expect(collected[i], data.sublist(0, i + 1).expand((e) => e.codeUnits).length);
expect(collected[i],
data.sublist(0, i + 1).expand((e) => e.codeUnits).length);
}
});
}
Expand Down

0 comments on commit d46dc75

Please sign in to comment.