flutter_bluetooth_basic/test/flutter_bluetooth_basic_tes...

20 lines
484 B
Dart

import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_bluetooth_basic/flutter_bluetooth_basic.dart';
void main() {
const MethodChannel channel = MethodChannel('flutter_bluetooth_basic');
TestWidgetsFlutterBinding.ensureInitialized();
setUp(() {
channel.setMockMethodCallHandler((MethodCall methodCall) async {
return '42';
});
});
tearDown(() {
channel.setMockMethodCallHandler(null);
});
}