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/nb_no.dart';
void main() {
test('nbNO can be imported and accessed', () {
expect(nbNO, isNotEmpty);
expect(nbNO['continue'], isNotNull);
});
test('nbNO has the same translation keys as enUS', () {
expect(nbNO.keys.toSet(), equals(enUS.keys.toSet()));
});
test('nbNO has no empty values', () {
final emptyKeys = nbNO.entries
.where((entry) => entry.value.trim().isEmpty)
.map((entry) => entry.key)
.toList(growable: false);
expect(emptyKeys, isEmpty);
});
}