test: 위젯 테스트 업데이트

This commit is contained in:
JiWoong Sul
2026-01-12 16:17:42 +09:00
parent 6c56429d06
commit f7fae92fca

View File

@@ -6,8 +6,9 @@ void main() {
// SharedPreferences 모킹 // SharedPreferences 모킹
setUpAll(() { setUpAll(() {
TestWidgetsFlutterBinding.ensureInitialized(); TestWidgetsFlutterBinding.ensureInitialized();
const MethodChannel('plugins.flutter.io/shared_preferences') const MethodChannel(
.setMockMethodCallHandler((call) async { 'plugins.flutter.io/shared_preferences',
).setMockMethodCallHandler((call) async {
if (call.method == 'getAll') return <String, Object>{}; if (call.method == 'getAll') return <String, Object>{};
return null; return null;
}); });