20 lines
589 B
Dart
20 lines
589 B
Dart
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:please_pay_me/core/config/app_config.dart';
|
|
import 'package:please_pay_me/core/legal/legal_links.dart';
|
|
|
|
void main() {
|
|
test('legal URLs point at the cabinet origin', () {
|
|
expect(
|
|
LegalLinks.resolve('https://please-pay-me.ru/', LegalLinks.privacy),
|
|
Uri.parse('https://please-pay-me.ru/legal/privacy'),
|
|
);
|
|
});
|
|
|
|
test('empty cabinet falls back to production', () {
|
|
expect(
|
|
LegalLinks.resolve('', LegalLinks.offer),
|
|
Uri.parse('${AppConfig.productionOrigin}/legal/offer'),
|
|
);
|
|
});
|
|
}
|