Skip to content

Commit 46797f5

Browse files
committed
Add getScheduleById stub
1 parent aacabe4 commit 46797f5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/data/repositories/schedule_repository_impl_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,13 @@ void main() {
268268
() async {
269269
when(mockScheduleRemoteDataSource.updateSchedule(tScheduleEntity))
270270
.thenAnswer((_) async {});
271+
when(mockScheduleRemoteDataSource.getScheduleById(scheduleEntityId))
272+
.thenAnswer((_) async => tScheduleEntity);
271273

272274
await scheduleRepository.updateSchedule(tScheduleEntity);
273275

274276
verify(mockScheduleRemoteDataSource.updateSchedule(tScheduleEntity));
277+
verify(mockScheduleRemoteDataSource.getScheduleById(scheduleEntityId));
275278
expect(fakeTimedPreparationRepository.clearedIds, [scheduleEntityId]);
276279
},
277280
);

0 commit comments

Comments
 (0)