removed MockIAPProductsProvider

This commit is contained in:
Vadim 2023-10-19 00:24:49 +02:00
parent a19d08dcec
commit 3c4d959cc6
2 changed files with 10 additions and 5 deletions

View file

@ -19,8 +19,13 @@ extension WidgetTesterCommonActions on WidgetTester {
Film selectedFilm = const Film.other(),
}) async {
await pumpWidget(
MockIAPProductsProvider(
productStatus: productStatus,
IAPProducts(
products: [
IAPProduct(
storeId: IAPProductType.paidFeatures.storeId,
status: productStatus,
),
],
child: ApplicationWrapper(
const Environment.dev(),
child: MockIAPProviders(

View file

@ -7,9 +7,9 @@ import 'package:m3_lightmeter_iap/m3_lightmeter_iap.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
runApp(
const MockIAPProductsProvider(
productStatus: IAPProductStatus.purchasable,
child: ApplicationWrapper(
IAPProducts(
products: [IAPProduct(storeId: IAPProductType.paidFeatures.storeId)],
child: const ApplicationWrapper(
Environment.dev(),
child: Application(),
),