智莺生活APP的阿里百川 Flutter 插件
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
505 B

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