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: add tests for enum utils #2349

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

fix: add tests for enum utils #2349

wants to merge 2 commits into from

Conversation

iamacook
Copy link
Member

Summary

We use numeric enums for performance reasons in our database entities, the values of which are stored as integers. The values are converted to/from their respective keys when interacting with the database.

This adds relevant tests to the helpers, as well as fixing a small issue discovered when writing them.

Changes

  • Throw for undefined values in database enum transformer
  • Add enum util tests

@iamacook iamacook self-assigned this Feb 14, 2025
@iamacook iamacook requested a review from a team as a code owner February 14, 2025 15:13
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.

1 participant