feat(sbp_payments): added tests for new chosen_plan_state fixtures and new tests for chat repo and service

This commit is contained in:
misha
2026-07-08 15:07:36 +03:00
parent e10610d93c
commit 51397003b5
10 changed files with 171 additions and 27 deletions

View File

@@ -33,5 +33,15 @@ void main() {
expect(model.paymentProvider, 'alfa-bank');
},
);
test('fromJson парсит mock-ответ (checkout_url без order_id)', () {
final json = FixtureReader.readAsMap('chat/payments/payment_response.json');
final model = PaymentModel.fromJson(json);
expect(model.paymentUrl, 'https://example.com/checkout/payment-123');
expect(model.orderId, isNull);
expect(model.paymentProvider, isNull);
});
});
}