test: 위젯 테스트 업데이트
This commit is contained in:
@@ -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;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user