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(), Film selectedFilm = const Film.other(),
}) async { }) async {
await pumpWidget( await pumpWidget(
MockIAPProductsProvider( IAPProducts(
productStatus: productStatus, products: [
IAPProduct(
storeId: IAPProductType.paidFeatures.storeId,
status: productStatus,
),
],
child: ApplicationWrapper( child: ApplicationWrapper(
const Environment.dev(), const Environment.dev(),
child: MockIAPProviders( child: MockIAPProviders(

View file

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