Initial commit

This commit is contained in:
linmeng
2026-06-16 09:31:43 +08:00
commit a47d43de5e
135 changed files with 9240 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:gitea_issue_manager/main.dart';
void main() {
test('normalizes Gitea server URLs', () {
expect(
normalizedServer('111.228.39.103:3000/'),
'http://111.228.39.103:3000',
);
expect(
normalizedServer('https://gitea.example.com/'),
'https://gitea.example.com',
);
});
test('parses label colors', () {
expect(parseColor('ff0000').toARGB32(), 0xFFFF0000);
expect(parseColor('#00ff00').toARGB32(), 0xFF00FF00);
});
}