Skip to content

Conversation

@alkaline-0
Copy link
Collaborator

The original code submitted in the branch feature/oauth was not testable.

I refactored the resolver into a helper file in /packages/src/backend/plugins/plugins_helper/googleAuthResolver.ts and exported the resolver to make it testable.

The tests are written in index.test.ts.

Copy link
Collaborator

@AGiljanovic AGiljanovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also just add in general validation testing against the different email formats, including edge cases and potential security attacks :)

@alkaline-0 alkaline-0 requested a review from AGiljanovic May 14, 2024 12:45
@alkaline-0 alkaline-0 force-pushed the feature/test-google-auth branch from 32bef66 to d59e2b2 Compare May 14, 2024 15:17
Copy link
Collaborator

@AGiljanovic AGiljanovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For future reference, stick to the naming convention, otherwise:

LGTM

@AGiljanovic AGiljanovic merged commit 04b64ae into main May 14, 2024
@NewerKey NewerKey deleted the feature/test-google-auth branch January 20, 2025 19:30
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.

5 participants