This repository has been archived on 2026-10-23. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
halkyon_shared/packages/halkyon_app/test/instance/cldr_license_test.dart

26 lines
846 B
Dart
Raw Normal View History

import 'package:flutter/foundation.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:halkyon_app/halkyon_app.dart';
void main() {
TestWidgetsFlutterBinding.ensureInitialized();
test("Unicode CLDR's notice joins the licence list with the flags', as "
'their licences ask', () async {
registerHalkyonAppLicenses();
final notices = {
await for (final entry in LicenseRegistry.licenses)
for (final package in entry.packages)
package: entry.paragraphs
.map((paragraph) => paragraph.text)
.join('\n'),
};
expect(notices['Unicode CLDR'], contains('UNICODE LICENSE V3'));
expect(notices['Unicode CLDR'], contains('Unicode, Inc.'));
expect(
notices['flag-icons'],
contains('Copyright (c) 2013 Panayiotis Lipiridis'),
);
});
}