Skip to content

Fix/spm api bridge unit tests #4957

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

Conversation

tyllark
Copy link
Member

@tyllark tyllark commented May 31, 2024

Added unit testing for nativeAmplifyApi's Query, mutate, subscribe, and unsubscribe methods. The Tests mainly use a MockAmplifyPlugin to stubbing out functionality along with a mock BasicMessageChannel and Codec for verifying subscription messages.

NativeAmplifyApi was made public for testing purposes and an unnecessary null check were removed as well.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

tyllark added 3 commits May 31, 2024 16:32
Made NativeAmplifyApi visible for unit tests
Removed unnecessary Null check
Unit tests for  Query, Mutate, Subscribe, and Unsubscribe
@tyllark tyllark requested a review from a team as a code owner May 31, 2024 23:41
@Equartey Equartey deleted the branch aws-amplify:fix/spm-auth-mode June 3, 2024 16:32
@Equartey Equartey closed this Jun 3, 2024
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.

2 participants