diff --git a/test/terms_and_conditions_test.dart b/test/terms_and_conditions_test.dart index b8edcb2..2b3d516 100644 --- a/test/terms_and_conditions_test.dart +++ b/test/terms_and_conditions_test.dart @@ -1,4 +1,5 @@ import 'package:bloc_test/bloc_test.dart'; +import 'package:concordium_wallet/entities/accepted_terms_and_conditions.dart'; import 'package:concordium_wallet/services/url_launcher.dart'; import 'package:concordium_wallet/state/terms_and_conditions.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; @@ -25,7 +26,7 @@ void main() { const String acceptedVersion = "1.0.0"; setUpAll(() { - registerFallbackValue(const AcceptedTermsAndConditions(version: validVersion)); + registerFallbackValue(AcceptedTermsAndConditions.acceptNow(validVersion)); }); setUp(() { @@ -33,7 +34,7 @@ void main() { final terms = TermsAndConditions(Uri.parse("localhost"), validVersion); state = TermsAndConditionsAcceptanceState( - accepted: const AcceptedTermsAndConditions(version: acceptedVersion), + accepted: AcceptedTermsAndConditions.acceptNow(acceptedVersion), valid: ValidTermsAndConditions.refreshedNow(termsAndConditions: terms)); // Build the terms and condition screen we wish to test