Flutter plugin for mofun flutter video.

mofun_flutter_plugin_video_test.dart 555B

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