amap_map/test/amap_flutter_map_test.dart

23 lines
505 B
Dart
Raw Normal View History

2023-12-22 21:23:24 +08:00
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
const MethodChannel channel = MethodChannel('amap_map');
TestWidgetsFlutterBinding.ensureInitialized();
setUp(() {
channel.setMockMethodCallHandler((MethodCall methodCall) async {
return '42';
});
});
tearDown(() {
channel.setMockMethodCallHandler(null);
});
// test('getPlatformVersion', () async {
// expect(await AMapWiget.platformVersion, '42');
// });
}