twonly-app-dependencies/screen_protector/test/screen_protector_test.dart
2026-05-01 01:24:58 +02:00

22 lines
475 B
Dart

import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
const MethodChannel channel = MethodChannel('screen_protector');
TestWidgetsFlutterBinding.ensureInitialized();
setUp(() {
channel.setMockMethodCallHandler((MethodCall methodCall) async {
return '42';
});
});
tearDown(() {
channel.setMockMethodCallHandler(null);
});
test('Should equals 42', () async {
expect('42', '42');
});
}