mirror of
https://github.com/hackku21/nearby_connections.git
synced 2026-03-02 03:49:22 +00:00
init
This commit is contained in:
21
test/nearby_connections_test.dart
Normal file
21
test/nearby_connections_test.dart
Normal 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');
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user