Skip to content

Commit

Permalink
delete test hive boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
pektinasen committed Jul 19, 2024
1 parent 4e998f0 commit a3fecdb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unit_test/intake_repository_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ void main() {
Hive.registerAdapter(MealNutrimentsDBOAdapter());
});

tearDown(() {
Hive.deleteFromDisk();
});

test('returns last added first', () async {
final box = await Hive.openBox<IntakeDBO>('intake_test');

Expand Down

0 comments on commit a3fecdb

Please sign in to comment.