This commit is contained in:
Prerak Mann
2019-05-10 12:24:05 +05:30
commit 7f1c9c9e8c
78 changed files with 1954 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
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');
});
}