Initial commit
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user