From d46dc7569680079c7e644335392c681804b90c64 Mon Sep 17 00:00:00 2001 From: SpeedReach <37238439+SpeedReach@users.noreply.github.com> Date: Fri, 6 Oct 2023 17:52:35 +0800 Subject: [PATCH] format code --- dio/test/upload_test.dart | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/dio/test/upload_test.dart b/dio/test/upload_test.dart index 44a8c3c18..6fa65e0a3 100644 --- a/dio/test/upload_test.dart +++ b/dio/test/upload_test.dart @@ -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 collected = []; final _ = await dio.put( '/put', @@ -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); } }); }