Skip to content

Commit

Permalink
cover 2 missing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Jun 4, 2024
1 parent 8f6ea38 commit 225df74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/Backend/favorite_actions_test.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:collection/collection.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_test/flutter_test.dart' as flTest;
import 'package:flutter_test/flutter_test.dart';
Expand Down Expand Up @@ -40,6 +41,8 @@ void main() {
expect(container.read(favoriteActionsProvider).length, 1);
expect(container.read(favoriteActionsProvider).first.actionUUID, 'c53e980e-899e-4148-a13e-f57a8f9707f4');

expect(container.read(favoriteActionsProvider.notifier).contains(baseAction), true);
container.read(favoriteActionsProvider).sorted();
// remove
await container.read(favoriteActionsProvider.notifier).remove(baseAction);
expect(container.read(favoriteActionsProvider).length, 0);
Expand Down

0 comments on commit 225df74

Please sign in to comment.