test: 위젯 테스트 업데이트
This commit is contained in:
@@ -6,8 +6,9 @@ void main() {
|
||||
// SharedPreferences 모킹
|
||||
setUpAll(() {
|
||||
TestWidgetsFlutterBinding.ensureInitialized();
|
||||
const MethodChannel('plugins.flutter.io/shared_preferences')
|
||||
.setMockMethodCallHandler((call) async {
|
||||
const MethodChannel(
|
||||
'plugins.flutter.io/shared_preferences',
|
||||
).setMockMethodCallHandler((call) async {
|
||||
if (call.method == 'getAll') return <String, Object>{};
|
||||
return null;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user