mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-21 15:00:40 +00:00
fixed film picket tests
This commit is contained in:
parent
f5f237add7
commit
7979bbda9c
1 changed files with 4 additions and 1 deletions
|
@ -20,6 +20,9 @@ void main() {
|
|||
when(() => mockFilmsStorageService.getPredefinedFilms()).thenAnswer(
|
||||
(_) => Future.value(Map.fromEntries(_films.map((e) => MapEntry(e.id, (film: e, isUsed: true))))),
|
||||
);
|
||||
when(() => mockFilmsStorageService.getCustomFilms()).thenAnswer(
|
||||
(_) => Future.value({}),
|
||||
);
|
||||
});
|
||||
|
||||
Future<void> pumpApplication(WidgetTester tester) async {
|
||||
|
@ -51,7 +54,7 @@ void main() {
|
|||
|
||||
group('Film push/pull label', () {
|
||||
testWidgets(
|
||||
'Film.other()',
|
||||
'FilmStub()',
|
||||
(tester) async {
|
||||
when(() => mockFilmsStorageService.selectedFilmId).thenReturn(const FilmStub().id);
|
||||
await pumpApplication(tester);
|
||||
|
|
Loading…
Reference in a new issue