first commit
This commit is contained in:
26
test/custom_social_share_method_channel_test.dart
Normal file
26
test/custom_social_share_method_channel_test.dart
Normal file
@@ -0,0 +1,26 @@
|
||||
import 'package:custom_social_share/src/custom_social_share_method_channel.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
MethodChannelCustomSocialShare platform = MethodChannelCustomSocialShare();
|
||||
const MethodChannel channel = MethodChannel('custom_social_share');
|
||||
|
||||
TestWidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
setUp(() {
|
||||
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
|
||||
.setMockMethodCallHandler(channel, (MethodCall methodCall) async {
|
||||
return true;
|
||||
});
|
||||
});
|
||||
|
||||
tearDown(() {
|
||||
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
|
||||
.setMockMethodCallHandler(channel, null);
|
||||
});
|
||||
|
||||
test('toAll', () async {
|
||||
expect(await platform.toAll('success'), true);
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user