Skip to content

Commit 91c50fb

Browse files
committed
test: add unit tests for missing StorageKey values
- Add tests for positiveInteractionCount, fcmToken, and oneSignalPlayerId - Ensure all enum values are covered in the stringValue getter's switch statement
1 parent d8640e3 commit 91c50fb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/src/storage_keys_test.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ void main() {
1212
StorageKey.hasSeenOnboarding.stringValue,
1313
equals('has_seen_onboarding'),
1414
);
15+
expect(
16+
StorageKey.positiveInteractionCount.stringValue,
17+
equals('positive_interaction_count'),
18+
);
19+
expect(StorageKey.fcmToken.stringValue, equals('fcm_token'));
20+
expect(
21+
StorageKey.oneSignalPlayerId.stringValue,
22+
equals('one_signal_player_id'),
23+
);
1524
});
1625

1726
// Test that all enum values are covered in the stringValue getter's switch statement.

0 commit comments

Comments
 (0)