You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
682 B

import 'package:flutter_test/flutter_test.dart';
import 'package:voitrans/core/translations/language/en_us.dart';
import 'package:voitrans/core/translations/language/es_es.dart';
void main() {
test('esES can be imported and accessed', () {
expect(esES, isNotEmpty);
expect(esES['continue'], isNotNull);
});
test('esES has the same translation keys as enUS', () {
expect(esES.keys.toSet(), equals(enUS.keys.toSet()));
});
test('esES has no empty values', () {
final emptyKeys = esES.entries
.where((entry) => entry.value.trim().isEmpty)
.map((entry) => entry.key)
.toList(growable: false);
expect(emptyKeys, isEmpty);
});
}