flutter京东SDK插件
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

24 行
524 B

  1. import 'package:flutter/services.dart';
  2. import 'package:flutter_test/flutter_test.dart';
  3. import 'package:jdsdk/jdsdk.dart';
  4. void main() {
  5. const MethodChannel channel = MethodChannel('jdsdk');
  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 Jdsdk.platformVersion, '42');
  17. });
  18. }