flutter_web_plugins/packages/ccc_fplugin/test/ccc_fplugin_test.dart

22 lines
497 B
Dart

import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:ccc_fplugin/ccc_fplugin.dart';
void main() {
const MethodChannel channel = MethodChannel('ccc_fplugin');
setUp(() {
channel.setMockMethodCallHandler((MethodCall methodCall) async {
return '42';
});
});
tearDown(() {
channel.setMockMethodCallHandler(null);
});
test('getPlatformVersion', () async {
expect(await CccFplugin.platformVersion, '42');
});
}