基础库
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

24 lines
554 B

  1. import 'package:flutter/services.dart';
  2. import 'package:flutter_test/flutter_test.dart';
  3. import 'package:zhiying_comm/zhiying_comm.dart';
  4. void main() {
  5. const MethodChannel channel = MethodChannel('zhiying_comm');
  6. TestWidgetsFlutterBinding.ensureInitialized();
  7. setUp(() {
  8. channel.setMockMethodCallHandler((MethodCall methodCall) async {
  9. return '42';
  10. });
  11. });
  12. tearDown(() {
  13. channel.setMockMethodCallHandler(null);
  14. });
  15. test('getPlatformVersion', () async {
  16. // expect(await ZhiyingComm.platformVersion, '42');
  17. });
  18. }