release: version 2.0.0

This commit is contained in:
hiddify-com
2024-07-30 10:35:25 +02:00
parent e2728d9b51
commit ff1c500333
3 changed files with 22 additions and 21 deletions

View File

@@ -4,8 +4,7 @@ import 'package:hiddify/features/profile/model/profile_entity.dart';
void main() {
const validBaseUrl = "https://example.com/configurations/user1/filename.yaml";
const validExtendedUrl =
"https://example.com/configurations/user1/filename.yaml?test#b";
const validExtendedUrl = "https://example.com/configurations/user1/filename.yaml?test#b";
const validSupportUrl = "https://example.com/support";
group(
@@ -41,6 +40,7 @@ void main() {
final headers = <String, List<String>>{
"profile-title": ["base64:ZXhhbXBsZVRpdGxl"],
"profile-update-interval": ["1"],
"test-url": [validBaseUrl],
"subscription-userinfo": [
"upload=0;download=1024;total=10240.5;expire=1704054600.55",
],
@@ -51,6 +51,7 @@ void main() {
expect(profile.name, equals("exampleTitle"));
expect(profile.url, equals(validExtendedUrl));
expect(profile.testUrl, equals(validBaseUrl));
expect(
profile.options,
equals(const ProfileOptions(updateInterval: Duration(hours: 1))),