@@ -9,7 +9,7 @@ final collectionMin = HttpResponse(200,
99 {'type' : 'articles' , 'id' : '1' }
1010 ]
1111 }))
12- ..headers.addAll ({'Content-Type' : MediaType .jsonApi });
12+ ..headers.addAll ({'Content-Type' : mediaType });
1313
1414final collectionFull = HttpResponse (200 ,
1515 body: jsonEncode ({
@@ -80,7 +80,7 @@ final collectionFull = HttpResponse(200,
8080 }
8181 ]
8282 }))
83- ..headers.addAll ({'Content-Type' : MediaType .jsonApi });
83+ ..headers.addAll ({'Content-Type' : mediaType });
8484
8585final primaryResource = HttpResponse (200 ,
8686 body: jsonEncode ({
@@ -130,13 +130,13 @@ final primaryResource = HttpResponse(200,
130130 }
131131 ]
132132 }))
133- ..headers.addAll ({'Content-Type' : MediaType .jsonApi });
133+ ..headers.addAll ({'Content-Type' : mediaType });
134134final relatedResourceNull = HttpResponse (200 ,
135135 body: jsonEncode ({
136136 'links' : {'self' : 'http://example.com/articles/1/author' },
137137 'data' : null
138138 }))
139- ..headers.addAll ({'Content-Type' : MediaType .jsonApi });
139+ ..headers.addAll ({'Content-Type' : mediaType });
140140final one = HttpResponse (200 ,
141141 body: jsonEncode ({
142142 'links' : {
@@ -179,7 +179,7 @@ final one = HttpResponse(200,
179179 }
180180 ]
181181 }))
182- ..headers.addAll ({'Content-Type' : MediaType .jsonApi });
182+ ..headers.addAll ({'Content-Type' : mediaType });
183183
184184final oneEmpty = HttpResponse (200 ,
185185 body: jsonEncode ({
@@ -223,7 +223,7 @@ final oneEmpty = HttpResponse(200,
223223 }
224224 ]
225225 }))
226- ..headers.addAll ({'Content-Type' : MediaType .jsonApi });
226+ ..headers.addAll ({'Content-Type' : mediaType });
227227
228228final many = HttpResponse (200 ,
229229 body: jsonEncode ({
@@ -235,7 +235,7 @@ final many = HttpResponse(200,
235235 {'type' : 'tags' , 'id' : '12' }
236236 ]
237237 }))
238- ..headers.addAll ({'Content-Type' : MediaType .jsonApi });
238+ ..headers.addAll ({'Content-Type' : mediaType });
239239
240240final noContent = HttpResponse (204 );
241241
@@ -250,6 +250,6 @@ final error422 = HttpResponse(422,
250250 }
251251 ]
252252 }))
253- ..headers.addAll ({'Content-Type' : MediaType .jsonApi });
253+ ..headers.addAll ({'Content-Type' : mediaType });
254254
255255final error500 = HttpResponse (500 );
0 commit comments