1
0
forked from baron/baron-sso

로그인 화면 플랫 UI 수정

This commit is contained in:
2026-04-08 17:45:51 +09:00
parent 332b657add
commit 1e53b66abb
6 changed files with 730 additions and 553 deletions

View File

@@ -8,25 +8,25 @@ void main() {
setUp(() async {
SharedPreferences.setMockInitialValues({});
await ThemeController.instance.setThemeMode(ThemeMode.light);
await ThemeController.app.setThemeMode(ThemeMode.light);
});
test('저장된 dark 값을 복원한다', () async {
SharedPreferences.setMockInitialValues({
ThemeController.storageKey: 'dark',
ThemeController.appStorageKey: 'dark',
});
await ThemeController.instance.restore();
await ThemeController.app.restore();
expect(ThemeController.instance.value, ThemeMode.dark);
expect(ThemeController.app.value, ThemeMode.dark);
});
test('toggle 결과를 저장한다', () async {
await ThemeController.instance.restore();
await ThemeController.instance.toggle();
await ThemeController.app.restore();
await ThemeController.app.toggle();
final prefs = await SharedPreferences.getInstance();
expect(ThemeController.instance.value, ThemeMode.dark);
expect(prefs.getString(ThemeController.storageKey), 'dark');
expect(ThemeController.app.value, ThemeMode.dark);
expect(prefs.getString(ThemeController.appStorageKey), 'dark');
});
}