Skip to content

Commit 20d6001

Browse files
committed
Add test cases for null request fields. See: #75
1 parent 3246f95 commit 20d6001

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/io/http_test.dart

+6-3
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ main() {
125125
'User-Agent': 'Dart'
126126
}, body: {
127127
'some-field': 'value',
128-
'other-field': 'other value'
128+
'other-field': 'other value',
129+
'null-field': null
129130
}).then((response) {
130131
expect(response.statusCode, equals(200));
131132
expect(response.body, parse(equals({
@@ -229,7 +230,8 @@ main() {
229230
'User-Agent': 'Dart'
230231
}, body: {
231232
'some-field': 'value',
232-
'other-field': 'other value'
233+
'other-field': 'other value',
234+
'null-field': null
233235
}).then((response) {
234236
expect(response.statusCode, equals(200));
235237
expect(response.body, parse(equals({
@@ -333,7 +335,8 @@ main() {
333335
'User-Agent': 'Dart'
334336
}, body: {
335337
'some-field': 'value',
336-
'other-field': 'other value'
338+
'other-field': 'other value',
339+
'null-field': null
337340
}).then((response) {
338341
expect(response.statusCode, equals(200));
339342
expect(response.body, parse(equals({

0 commit comments

Comments
 (0)