mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-23 16:00:41 +00:00
f3b08868be
- Fixed test coverage calculation - Removed `mockito` from the application mock - Implemented platform channel mocks to mimic incident light metering - Covered providers with unit tests - Covered metering screen pickers with widget tests - Laid foundation for integration tests
18 lines
609 B
Dart
18 lines
609 B
Dart
import 'package:lightmeter/data/models/supported_locale.dart';
|
|
import 'package:test/test.dart';
|
|
|
|
void main() {
|
|
test('intlName', () {
|
|
expect(SupportedLocale.en.intlName, 'en');
|
|
expect(SupportedLocale.fr.intlName, 'fr');
|
|
expect(SupportedLocale.ru.intlName, 'ru');
|
|
expect(SupportedLocale.zh.intlName, 'zh');
|
|
});
|
|
|
|
test('localizedName', () {
|
|
expect(SupportedLocale.en.localizedName, 'English');
|
|
expect(SupportedLocale.fr.localizedName, 'Français');
|
|
expect(SupportedLocale.ru.localizedName, 'Русский');
|
|
expect(SupportedLocale.zh.localizedName, '简体中文');
|
|
});
|
|
}
|