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