@@ -34,13 +34,14 @@ void main() {
34
34
Uri .https ('localhost' , 'api/v2/gallery/' ),
35
35
headers: anyNamed ('headers' ),
36
36
)).thenAnswer ((_) async => http.Response (
37
- '{"count":1,"next":null,"previous":null,"results":['
38
- '{"id":58,'
39
- '"date":"2022-01-09",'
40
- '"image":"https://wger.de/media/gallery/170335/d2b9c9e0-d541-41ae-8786-a2ab459e3538.jpg",'
41
- '"description":"eggsaddjujuit\' ddayhadIforcanview",'
42
- '"height":1280,"width":960}]}' ,
43
- 200 ));
37
+ '{"count":1,"next":null,"previous":null,"results":['
38
+ '{"id":58,'
39
+ '"date":"2022-01-09",'
40
+ '"image":"https://wger.de/media/gallery/170335/d2b9c9e0-d541-41ae-8786-a2ab459e3538.jpg",'
41
+ '"description":"eggsaddjujuit\' ddayhadIforcanview",'
42
+ '"height":1280,"width":960}]}' ,
43
+ 200 ,
44
+ ));
44
45
45
46
final galleryProvider = GalleryProvider (testAuthProvider, [], client);
46
47
@@ -57,20 +58,22 @@ void main() {
57
58
Uri .https ('localhost' , 'api/v2/gallery/58/' ),
58
59
headers: anyNamed ('headers' ),
59
60
)).thenAnswer ((_) async => http.Response (
60
- '{"id":58,'
61
- '"date":"2022-01-09",'
62
- '"image":"https://wger.de/media/gallery/170335/d2b9c9e0-d541-41ae-8786-a2ab459e3538.jpg",'
63
- '"description":"eggsaddjujuit\' ddayhadIforcanview",'
64
- '"height":1280,"width":960}' ,
65
- 200 ));
61
+ '{"id":58,'
62
+ '"date":"2022-01-09",'
63
+ '"image":"https://wger.de/media/gallery/170335/d2b9c9e0-d541-41ae-8786-a2ab459e3538.jpg",'
64
+ '"description":"eggsaddjujuit\' ddayhadIforcanview",'
65
+ '"height":1280,"width":960}' ,
66
+ 200 ,
67
+ ));
66
68
67
69
final galleryProvider = GalleryProvider (testAuthProvider, [], client);
68
70
69
71
final image = gallery.Image (
70
- id: 58 ,
71
- date: DateTime (2022 , 01 , 09 ),
72
- url: 'https://wger.de/media/gallery/170335/d2b9c9e0-d541-41ae-8786-a2ab459e3538.jpg' ,
73
- description: "eggsaddjujuit'ddayhadIforcanview" );
72
+ id: 58 ,
73
+ date: DateTime (2022 , 01 , 09 ),
74
+ url: 'https://wger.de/media/gallery/170335/d2b9c9e0-d541-41ae-8786-a2ab459e3538.jpg' ,
75
+ description: "eggsaddjujuit'ddayhadIforcanview" ,
76
+ );
74
77
75
78
galleryProvider.images.add (image);
76
79
0 commit comments