mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-08-05 04:36:41 +00:00
fixed tests
This commit is contained in:
parent
621eb6d617
commit
28ed8115d3
3 changed files with 2 additions and 3 deletions
Binary file not shown.
Before Width: | Height: | Size: 899 KiB |
|
@ -18,7 +18,8 @@ void main() {
|
|||
setUp(() {
|
||||
registerFallbackValue(mockCustomFilms.first);
|
||||
when(() => storageService.toggleFilm(any<Film>(), any<bool>())).thenAnswer((_) async {});
|
||||
when(() => storageService.addFilm(any<FilmExponential>())).thenAnswer((_) async {});
|
||||
// ignore: avoid_redundant_argument_values
|
||||
when(() => storageService.addFilm(any<FilmExponential>(), isUsed: true)).thenAnswer((_) async {});
|
||||
when(() => storageService.updateFilm(any<FilmExponential>())).thenAnswer((_) async {});
|
||||
when(() => storageService.deleteFilm(any<FilmExponential>())).thenAnswer((_) async {});
|
||||
when(() => storageService.getPredefinedFilms()).thenAnswer((_) => Future.value(mockPredefinedFilms.toFilmsMap()));
|
||||
|
|
|
@ -153,8 +153,6 @@ void main() {
|
|||
() => storageService.updatePhoto(
|
||||
id: updatedPhoto.id,
|
||||
note: 'Updated note',
|
||||
apertureValue: const Optional(null),
|
||||
shutterSpeedValue: const Optional(null),
|
||||
),
|
||||
).called(1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue