Init
This commit is contained in:
23
native_opencv/test/native_opencv_test.dart
Normal file
23
native_opencv/test/native_opencv_test.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:native_opencv/native_opencv.dart';
|
||||
|
||||
void main() {
|
||||
const MethodChannel channel = MethodChannel('native_opencv');
|
||||
|
||||
TestWidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
setUp(() {
|
||||
channel.setMockMethodCallHandler((MethodCall methodCall) async {
|
||||
return '42';
|
||||
});
|
||||
});
|
||||
|
||||
tearDown(() {
|
||||
channel.setMockMethodCallHandler(null);
|
||||
});
|
||||
|
||||
test('getPlatformVersion', () async {
|
||||
expect(await NativeOpencv.platformVersion, '42');
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user