This commit is contained in:
ekibun
2020-08-08 18:00:21 +08:00
commit 17d2876e36
64 changed files with 5377 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
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);
});
}