flutter create
This commit is contained in:
commit
b864ec96b9
91 changed files with 2144 additions and 0 deletions
23
test/flutter_openssl_crypto_test.dart
Normal file
23
test/flutter_openssl_crypto_test.dart
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:flutter_openssl_crypto/flutter_openssl_crypto.dart';
|
||||
|
||||
void main() {
|
||||
const MethodChannel channel = MethodChannel('flutter_openssl_crypto');
|
||||
|
||||
TestWidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
setUp(() {
|
||||
channel.setMockMethodCallHandler((MethodCall methodCall) async {
|
||||
return '42';
|
||||
});
|
||||
});
|
||||
|
||||
tearDown(() {
|
||||
channel.setMockMethodCallHandler(null);
|
||||
});
|
||||
|
||||
test('getPlatformVersion', () async {
|
||||
expect(await FlutterOpensslCrypto.platformVersion, '42');
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue