mirror of
https://github.com/hackku21/nearby_connections.git
synced 2024-10-27 19:14:01 +00:00
17 lines
358 B
Dart
17 lines
358 B
Dart
|
import 'package:flutter/services.dart';
|
||
|
import 'package:flutter_test/flutter_test.dart';
|
||
|
|
||
|
void main() {
|
||
|
const MethodChannel channel = MethodChannel('nearby_connections');
|
||
|
|
||
|
setUp(() {
|
||
|
channel.setMockMethodCallHandler((MethodCall methodCall) async {
|
||
|
return '42';
|
||
|
});
|
||
|
});
|
||
|
|
||
|
tearDown(() {
|
||
|
channel.setMockMethodCallHandler(null);
|
||
|
});
|
||
|
}
|