Imrpoved image handling since the size of the image is about 5MB.
This commit is contained in:
@@ -35,7 +35,7 @@ void _testDelete(PictureController controller, int response, bool expected) asyn
|
||||
|
||||
when(client.delete(Uri.parse('http://localhost:8080/api/picture/4'), headers: {"Accept-Language": "en-US"})).thenAnswer((_) async => http.Response("", response));
|
||||
|
||||
var dto = await controller.delete(PictureDto(id: 4, image: "", pictureDate: DateTime.now(), category: "", comment: "", evaluation: 1, username: ""));
|
||||
var dto = await controller.delete(PictureDto(id: 4, pictureDate: DateTime.now(), category: "", comment: "", evaluation: 1, username: "", imageUrl: "", normalSizeUrl: "", thumbnailSizeUrl: ""));
|
||||
expect(dto, expected);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user