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
678 B

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