26 lines
846 B
Dart
26 lines
846 B
Dart
|
|
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'),
|
||
|
|
);
|
||
|
|
});
|
||
|
|
}
|