mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-26 01:10:39 +00:00
fixed running all tests
This commit is contained in:
parent
604ee097a6
commit
801ddd9589
1 changed files with 4 additions and 6 deletions
|
@ -25,20 +25,17 @@ void main() {
|
|||
late MeteringBloc bloc;
|
||||
const iso100 = IsoValue(100, StopType.full);
|
||||
|
||||
setUpAll(() {
|
||||
setUp(() {
|
||||
meteringInteractor = _MockMeteringInteractor();
|
||||
communicationBloc = _MockMeteringCommunicationBloc();
|
||||
|
||||
when<IsoValue>(() => meteringInteractor.iso).thenReturn(iso100);
|
||||
when<NdValue>(() => meteringInteractor.ndFilter).thenReturn(NdValue.values.first);
|
||||
when<Film>(() => meteringInteractor.film).thenReturn(Film.values.first);
|
||||
|
||||
when(meteringInteractor.quickVibration).thenAnswer((_) async {});
|
||||
when(meteringInteractor.responseVibration).thenAnswer((_) async {});
|
||||
when(meteringInteractor.errorVibration).thenAnswer((_) async {});
|
||||
});
|
||||
|
||||
setUp(() {
|
||||
communicationBloc = _MockMeteringCommunicationBloc();
|
||||
|
||||
bloc = MeteringBloc(
|
||||
meteringInteractor,
|
||||
communicationBloc,
|
||||
|
@ -47,6 +44,7 @@ void main() {
|
|||
|
||||
tearDown(() {
|
||||
bloc.close();
|
||||
communicationBloc.close();
|
||||
});
|
||||
|
||||
group(
|
||||
|
|
Loading…
Reference in a new issue