diff --git a/test/unit/data/image_repository_test.dart b/test/unit/data/image_repository_test.dart index 4dd3142..90ecbd9 100644 --- a/test/unit/data/image_repository_test.dart +++ b/test/unit/data/image_repository_test.dart @@ -1,6 +1,5 @@ import 'dart:typed_data'; -import 'package:dwyl_app/core/data_layer.dart'; import 'package:dwyl_app/data/repositories/image/image_repository.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:http/http.dart' as http; @@ -13,7 +12,7 @@ void main() { final bytes = Uint8List.fromList([0xff, 0xd8, 0xff, 0xe0]); // Should return an URL, not an error. - final ret = await imageRepository.uploadImage(bytes, "cool_birthday"); + final ret = await imageRepository.uploadImage(bytes, 'cool_birthday'); expect(ret.isRight(), true); }); @@ -23,18 +22,18 @@ void main() { final bytes = Uint8List.fromList([]); // Should error out - final ret = await imageRepository.uploadImage(bytes, "cool_birthday"); + final ret = await imageRepository.uploadImage(bytes, 'cool_birthday'); expect(ret.isLeft(), true); }); - test('ImageRepository should yield an error because bytes array has invalid mimetype', () async { + test('ImageRepository should yield an error because bytes array has invalid mimetype', () async { final imageRepository = ImgupRepository(client: http.Client()); // Invalid byte array (a simple [0] does not have any mime type) final bytes = Uint8List.fromList([0]); // Should error out - final ret = await imageRepository.uploadImage(bytes, "cool_birthday"); + final ret = await imageRepository.uploadImage(bytes, 'cool_birthday'); expect(ret.isLeft(), true); }); }