forked from baron/baron-sso
i18n 대대적 변경
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
import 'dart:ui';
|
||||
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
|
||||
import 'package:userfront/features/dashboard/domain/dashboard_providers.dart';
|
||||
import 'package:userfront/features/dashboard/domain/models.dart';
|
||||
import 'package:userfront/i18n.dart';
|
||||
|
||||
AuditLogEntry _log(String id) {
|
||||
return AuditLogEntry.fromJson({
|
||||
@@ -21,6 +24,14 @@ Future<void> _drainMicrotasks() async {
|
||||
|
||||
void main() {
|
||||
TestWidgetsFlutterBinding.ensureInitialized();
|
||||
final dispatcher = TestWidgetsFlutterBinding.instance.platformDispatcher;
|
||||
dispatcher.localeTestValue = const Locale('ko');
|
||||
dispatcher.localesTestValue = const [Locale('ko')];
|
||||
|
||||
tearDownAll(() {
|
||||
dispatcher.clearLocaleTestValue();
|
||||
dispatcher.clearLocalesTestValue();
|
||||
});
|
||||
|
||||
test('AuthTimelineNotifier는 초기 페이지를 로드한다', () async {
|
||||
final cursors = <String?>[];
|
||||
@@ -103,7 +114,13 @@ void main() {
|
||||
|
||||
final state = container.read(authTimelineProvider);
|
||||
expect(state.items.isEmpty, true);
|
||||
expect(state.error, '접속이력을 불러오지 못했습니다.');
|
||||
expect(
|
||||
state.error,
|
||||
tr(
|
||||
'msg.userfront.dashboard.timeline.load_error',
|
||||
fallback: '접속이력을 불러오지 못했습니다.',
|
||||
),
|
||||
);
|
||||
container.dispose();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user