mirror of
https://github.com/flutter/samples.git
synced 2025-11-14 03:19:06 +00:00
Flutter 3.29 beta (#2571)
This commit is contained in:
@@ -20,9 +20,7 @@ void main() {
|
||||
|
||||
setUp(() {
|
||||
fakeAuthRepository = FakeAuthRepository();
|
||||
viewModel = LoginViewModel(
|
||||
authRepository: fakeAuthRepository,
|
||||
);
|
||||
viewModel = LoginViewModel(authRepository: fakeAuthRepository);
|
||||
goRouter = MockGoRouter();
|
||||
});
|
||||
|
||||
|
||||
@@ -27,7 +27,8 @@ void main() {
|
||||
fakeAuthRepository.token = 'TOKEN';
|
||||
// Setup an ItineraryConfig with some data, should be cleared after logout
|
||||
fakeItineraryConfigRepository = FakeItineraryConfigRepository(
|
||||
itineraryConfig: const ItineraryConfig(continent: 'CONTINENT'));
|
||||
itineraryConfig: const ItineraryConfig(continent: 'CONTINENT'),
|
||||
);
|
||||
viewModel = LogoutViewModel(
|
||||
authRepository: fakeAuthRepository,
|
||||
itineraryConfigRepository: fakeItineraryConfigRepository,
|
||||
|
||||
Reference in New Issue
Block a user