26 lines
720 B
Dart
26 lines
720 B
Dart
|
|
import 'package:flutter/foundation.dart';
|
||
|
|
import 'package:flutter_test/flutter_test.dart';
|
||
|
|
import 'package:halkyon_train_flutter/src/app/licences.dart';
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
testWidgets(
|
||
|
|
"Lucide's notice, whose icon is Train's, joins the licence list",
|
||
|
|
(
|
||
|
|
tester,
|
||
|
|
) async {
|
||
|
|
registerLucideLicense();
|
||
|
|
|
||
|
|
final entries = await tester.runAsync(
|
||
|
|
() => LicenseRegistry.licenses.toList(),
|
||
|
|
);
|
||
|
|
final lucide = entries!.where(
|
||
|
|
(entry) => entry.packages.contains('Lucide (the app icon)'),
|
||
|
|
);
|
||
|
|
expect(lucide, isNotEmpty);
|
||
|
|
expect(
|
||
|
|
lucide.first.paragraphs.map((paragraph) => paragraph.text).join('\n'),
|
||
|
|
contains('ISC License'),
|
||
|
|
);
|
||
|
|
},
|
||
|
|
);
|
||
|
|
}
|