first commit
This commit is contained in:
21
example/integration_test/plugin_integration_test.dart
Normal file
21
example/integration_test/plugin_integration_test.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
// This is a basic Flutter integration test.
|
||||
//
|
||||
// Since integration tests run in a full Flutter application, they can interact
|
||||
// with the host side of a plugin implementation, unlike Dart unit tests.
|
||||
//
|
||||
// For more information about Flutter integration tests, please see
|
||||
// https://docs.flutter.dev/cookbook/testing/integration/introduction
|
||||
|
||||
import 'package:custom_social_share/custom_social_share.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:integration_test/integration_test.dart';
|
||||
|
||||
void main() {
|
||||
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
testWidgets('toAll test', (WidgetTester tester) async {
|
||||
final CustomSocialShare plugin = CustomSocialShare();
|
||||
final bool result = await plugin.toAll('Test');
|
||||
expect(result, true);
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user