forked from eatvio/eatvio_app
fix(payments, tests): flutter analyser warns
This commit is contained in:
@@ -76,7 +76,7 @@ void main() {
|
|||||||
|
|
||||||
testWidgets('Да → форма → Пропустить → вызывает SbpBanks', (tester) async {
|
testWidgets('Да → форма → Пропустить → вызывает SbpBanks', (tester) async {
|
||||||
gateResult = true;
|
gateResult = true;
|
||||||
formResult = PromoCodeResult();
|
formResult = const PromoCodeResult();
|
||||||
await tester.pumpWidget(createTestApp());
|
await tester.pumpWidget(createTestApp());
|
||||||
|
|
||||||
await showConsultationPaymentFlow(
|
await showConsultationPaymentFlow(
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ void main() {
|
|||||||
await tester.pumpWidget(
|
await tester.pumpWidget(
|
||||||
createTestWidget(
|
createTestWidget(
|
||||||
onValidate: (code) async {
|
onValidate: (code) async {
|
||||||
captured ??= PromoValidation.failure('Промокод не найден или истёк');
|
captured ??= const PromoValidation.failure('Промокод не найден или истёк');
|
||||||
return captured!;
|
return captured!;
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user