@@ -44,7 +44,7 @@ Actual MIME type: "application/json"
44
44
test ('returns empty form data when body is empty' , () async {
45
45
final formData = await parseFormData (
46
46
headers: {
47
- HttpHeaders .contentTypeHeader: formUrlEncodedContentType.mimeType
47
+ HttpHeaders .contentTypeHeader: formUrlEncodedContentType.mimeType,
48
48
},
49
49
body: () async => '' ,
50
50
bytes: () async * {},
@@ -59,7 +59,7 @@ Actual MIME type: "application/json"
59
59
'when body contains single key/value' , () async {
60
60
final formData = await parseFormData (
61
61
headers: {
62
- HttpHeaders .contentTypeHeader: formUrlEncodedContentType.mimeType
62
+ HttpHeaders .contentTypeHeader: formUrlEncodedContentType.mimeType,
63
63
},
64
64
body: () async => 'foo=bar' ,
65
65
bytes: () async * {},
@@ -74,7 +74,7 @@ Actual MIME type: "application/json"
74
74
'when body contains multiple key/values' , () async {
75
75
final formData = await parseFormData (
76
76
headers: {
77
- HttpHeaders .contentTypeHeader: formUrlEncodedContentType.mimeType
77
+ HttpHeaders .contentTypeHeader: formUrlEncodedContentType.mimeType,
78
78
},
79
79
body: () async => 'foo=bar&bar=baz' ,
80
80
bytes: () async * {},
@@ -89,7 +89,7 @@ Actual MIME type: "application/json"
89
89
final formData = await parseFormData (
90
90
headers: {
91
91
HttpHeaders .contentTypeHeader:
92
- 'multipart/form-data; boundary=testing'
92
+ 'multipart/form-data; boundary=testing' ,
93
93
},
94
94
body: () async => '' ,
95
95
bytes: () async * {
@@ -108,7 +108,7 @@ Actual MIME type: "application/json"
108
108
final formData = await parseFormData (
109
109
headers: {
110
110
HttpHeaders .contentTypeHeader:
111
- 'multipart/form-data; boundary=testing'
111
+ 'multipart/form-data; boundary=testing' ,
112
112
},
113
113
body: () async => '' ,
114
114
bytes: () async * {
@@ -133,7 +133,7 @@ Actual MIME type: "application/json"
133
133
'my_file.txt' ,
134
134
ContentType .text,
135
135
'file content' ,
136
- )
136
+ ),
137
137
}),
138
138
);
139
139
});
@@ -142,7 +142,7 @@ Actual MIME type: "application/json"
142
142
final formData = await parseFormData (
143
143
headers: {
144
144
HttpHeaders .contentTypeHeader:
145
- 'multipart/form-data; boundary=testing'
145
+ 'multipart/form-data; boundary=testing' ,
146
146
},
147
147
body: () async => '' ,
148
148
bytes: () async * {
@@ -180,7 +180,7 @@ Actual MIME type: "application/json"
180
180
'my_other_file.txt' ,
181
181
ContentType .text,
182
182
'file content' ,
183
- )
183
+ ),
184
184
}),
185
185
);
186
186
});
@@ -215,7 +215,7 @@ Actual MIME type: "application/json"
215
215
group ('$UploadedFile ' , () {
216
216
test ('toString' , () {
217
217
final byteStream = Stream .fromIterable ([
218
- [1 , 2 , 3 , 4 ]
218
+ [1 , 2 , 3 , 4 ],
219
219
]);
220
220
final file = UploadedFile ('name' , ContentType .text, byteStream);
221
221
@@ -227,7 +227,7 @@ Actual MIME type: "application/json"
227
227
228
228
test ('readAsBytes' , () async {
229
229
final byteStream = Stream .fromIterable ([
230
- [1 , 2 , 3 , 4 ]
230
+ [1 , 2 , 3 , 4 ],
231
231
]);
232
232
final file = UploadedFile ('name' , ContentType .text, byteStream);
233
233
@@ -239,14 +239,14 @@ Actual MIME type: "application/json"
239
239
240
240
test ('openRead' , () {
241
241
final byteStream = Stream .fromIterable ([
242
- [1 , 2 , 3 , 4 ]
242
+ [1 , 2 , 3 , 4 ],
243
243
]);
244
244
final file = UploadedFile ('name' , ContentType .text, byteStream);
245
245
246
246
expect (
247
247
file.openRead (),
248
248
emitsInOrder ([
249
- [1 , 2 , 3 , 4 ]
249
+ [1 , 2 , 3 , 4 ],
250
250
]),
251
251
);
252
252
});
@@ -291,7 +291,7 @@ class MultiPartFormData {
291
291
part.content,
292
292
],
293
293
'--testing--' ,
294
- ''
294
+ '' ,
295
295
].join ('\r\n ' ),
296
296
);
297
297
}
0 commit comments