30 lines
1.0 KiB
Dart
30 lines
1.0 KiB
Dart
// import 'package:flutter_test/flutter_test.dart';
|
|
// import 'package:persistent/persistent.dart';
|
|
// import 'package:persistent/persistent_platform_interface.dart';
|
|
// import 'package:persistent/persistent_method_channel.dart';
|
|
// import 'package:plugin_platform_interface/plugin_platform_interface.dart';
|
|
//
|
|
// class MockPersistentPlatform
|
|
// with MockPlatformInterfaceMixin
|
|
// implements PersistentPlatform {
|
|
//
|
|
// @override
|
|
// Future<String?> getPlatformVersion() => Future.value('42');
|
|
// }
|
|
//
|
|
// void main() {
|
|
// final PersistentPlatform initialPlatform = PersistentPlatform.instance;
|
|
//
|
|
// test('$MethodChannelPersistent is the default instance', () {
|
|
// expect(initialPlatform, isInstanceOf<MethodChannelPersistent>());
|
|
// });
|
|
//
|
|
// test('getPlatformVersion', () async {
|
|
// Persistent persistentPlugin = Persistent();
|
|
// MockPersistentPlatform fakePlatform = MockPersistentPlatform();
|
|
// PersistentPlatform.instance = fakePlatform;
|
|
//
|
|
// expect(await persistentPlugin.getPlatformVersion(), '42');
|
|
// });
|
|
// }
|