Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: qr code show not found exception handling #107

Merged
merged 2 commits into from
Dec 25, 2024

Conversation

howard9199
Copy link
Contributor

This pull request includes changes to enhance error handling in the QrScanner component and adds extensive unit tests for Firebase-related functions. The most important changes include improved error messaging for QR code scanning, and the addition of unit tests for Firebase server functions and user data retrieval.

Error handling improvements:

Unit tests for Firebase functions:

  • tests/firebase.test.ts: Added unit tests for getGroupsData, getSessionData, and checkRemoveParticipantPermission functions, including mock implementations for Firestore interactions.
  • tests/getUser.test.ts: Added unit tests for the getUser function, including mock implementations for Firestore interactions and caching behavior.

@howard9199 howard9199 linked an issue Dec 25, 2024 that may be closed by this pull request
@howard9199 howard9199 merged commit 43ff8c7 into main Dec 25, 2024
4 checks passed
@howard9199 howard9199 deleted the fix/qr-code-show-error branch December 25, 2024 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error message is shown when scanning QR-Code
1 participant