@@ -9,7 +9,7 @@ final collectionMin = HttpResponse(200,
9
9
{'type' : 'articles' , 'id' : '1' }
10
10
]
11
11
}))
12
- ..headers.addAll ({'Content-Type' : MediaType .jsonApi });
12
+ ..headers.addAll ({'Content-Type' : mediaType });
13
13
14
14
final collectionFull = HttpResponse (200 ,
15
15
body: jsonEncode ({
@@ -80,7 +80,7 @@ final collectionFull = HttpResponse(200,
80
80
}
81
81
]
82
82
}))
83
- ..headers.addAll ({'Content-Type' : MediaType .jsonApi });
83
+ ..headers.addAll ({'Content-Type' : mediaType });
84
84
85
85
final primaryResource = HttpResponse (200 ,
86
86
body: jsonEncode ({
@@ -130,13 +130,13 @@ final primaryResource = HttpResponse(200,
130
130
}
131
131
]
132
132
}))
133
- ..headers.addAll ({'Content-Type' : MediaType .jsonApi });
133
+ ..headers.addAll ({'Content-Type' : mediaType });
134
134
final relatedResourceNull = HttpResponse (200 ,
135
135
body: jsonEncode ({
136
136
'links' : {'self' : 'http://example.com/articles/1/author' },
137
137
'data' : null
138
138
}))
139
- ..headers.addAll ({'Content-Type' : MediaType .jsonApi });
139
+ ..headers.addAll ({'Content-Type' : mediaType });
140
140
final one = HttpResponse (200 ,
141
141
body: jsonEncode ({
142
142
'links' : {
@@ -179,7 +179,7 @@ final one = HttpResponse(200,
179
179
}
180
180
]
181
181
}))
182
- ..headers.addAll ({'Content-Type' : MediaType .jsonApi });
182
+ ..headers.addAll ({'Content-Type' : mediaType });
183
183
184
184
final oneEmpty = HttpResponse (200 ,
185
185
body: jsonEncode ({
@@ -223,7 +223,7 @@ final oneEmpty = HttpResponse(200,
223
223
}
224
224
]
225
225
}))
226
- ..headers.addAll ({'Content-Type' : MediaType .jsonApi });
226
+ ..headers.addAll ({'Content-Type' : mediaType });
227
227
228
228
final many = HttpResponse (200 ,
229
229
body: jsonEncode ({
@@ -235,7 +235,7 @@ final many = HttpResponse(200,
235
235
{'type' : 'tags' , 'id' : '12' }
236
236
]
237
237
}))
238
- ..headers.addAll ({'Content-Type' : MediaType .jsonApi });
238
+ ..headers.addAll ({'Content-Type' : mediaType });
239
239
240
240
final noContent = HttpResponse (204 );
241
241
@@ -250,6 +250,6 @@ final error422 = HttpResponse(422,
250
250
}
251
251
]
252
252
}))
253
- ..headers.addAll ({'Content-Type' : MediaType .jsonApi });
253
+ ..headers.addAll ({'Content-Type' : mediaType });
254
254
255
255
final error500 = HttpResponse (500 );
0 commit comments