feat(proj): init
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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'),
|
||||
);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user