test: add i18n test

This commit is contained in:
Tien Do Nam
2023-05-24 00:42:33 +02:00
parent 572baf82ba
commit bdf0566de3
+12
View File
@@ -0,0 +1,12 @@
import 'package:localsend_app/gen/strings.g.dart';
import 'package:test/test.dart';
void main() {
group('i18n', () {
test('Should compile', () {
// The following test will fail if the i18n file is either not compiled
// or there are compile-time errors.
expect(AppLocale.en.translations.general.accept, 'Accept');
});
});
}