halkyon/apps/todo/halkyon_todo_flutter/test/licences_test.dart

23 lines
675 B
Dart
Raw Normal View History

import 'package:flutter/foundation.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:halkyon_todo_flutter/src/app/licences.dart';
void main() {
testWidgets("Lucide's notice, whose icon is Todo'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'),
);
});
}