feat(app): 完善播放协议搜索与空状态

This commit is contained in:
Zhou Weidong committed 2026-10-23 12:38:47 +08:00
1 parent 671e0ce143
commit ef29fc5f15
85 files changed
+2976 -768

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
// Author: fruit.com.cn
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:fruitshorts/core/config/app_config.dart';
import 'package:fruitshorts/core/legal/legal_page.dart';
void main() {
tearDown(AppConfig.clearRuntimeBaseUrl);
test('should_build_language_page_when_locale_is_supported', () {
AppConfig.applyRuntimeBaseUrl('http://192.168.31.243:8081');
expect(
legalPageUrl(legalPrivacyPath, const Locale('zh')),
'http://192.168.31.243:8081/privacy/zh',
);
expect(
legalPageUrl(legalTermsPath, const Locale('id')),
'http://192.168.31.243:8081/terms/id',
);
expect(
legalPageUrl(legalPrivacyPath, const Locale('fr')),
'http://192.168.31.243:8081/privacy/en',
);
});
}