mirror of
https://github.com/Dvorinka/1356.git
synced 2026-06-05 04:22:55 +00:00
small fix, don't worry about it
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
Future<void> testExecutable(dynamic Function() testMain) async {
|
||||
TestWidgetsFlutterBinding.ensureInitialized();
|
||||
SharedPreferences.setMockInitialValues({});
|
||||
|
||||
final hiveDir = await Directory.systemTemp.createTemp('lifetimer_test_hive_');
|
||||
Hive.init(hiveDir.path);
|
||||
|
||||
await Future<void>.sync(() => testMain());
|
||||
}
|
||||
Reference in New Issue
Block a user