mirror of
https://github.com/wgh136/flutter_qjs.git
synced 2025-09-27 05:27:23 +00:00
20 lines
402 B
Dart
20 lines
402 B
Dart
import 'package:flutter/services.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
void main() {
|
|
const MethodChannel channel = MethodChannel('flutter_qjs');
|
|
|
|
TestWidgetsFlutterBinding.ensureInitialized();
|
|
|
|
setUp(() {
|
|
channel.setMockMethodCallHandler((MethodCall methodCall) async {
|
|
return '42';
|
|
});
|
|
});
|
|
|
|
tearDown(() {
|
|
channel.setMockMethodCallHandler(null);
|
|
});
|
|
|
|
}
|