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

Add getOrganizationMetadata unit test #355

Closed
wants to merge 2 commits into from

Conversation

JosephBorodach
Copy link
Member

No description provided.

@JosephBorodach JosephBorodach requested a review from a team as a code owner March 13, 2025 20:51
Comment on lines 758 to 764
test('getOrganizationMetadata', () async {
final expected = GetOrganizationMetadataResponse()
..data = (Struct()..fields['key'] = (Value()..stringValue = 'value'));
when(serviceClient.getOrganizationMetadata(any)).thenAnswer((_) => MockResponseFuture.value(expected));
final response = await appClient.getOrganizationMetadata('orgId');
expect(response, equals(expected));
});
Copy link
Member Author

@JosephBorodach JosephBorodach Mar 13, 2025

Choose a reason for hiding this comment

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

@njooma - Do you see anything that I am doing obviously wrong here? I am breaking my teeth on these unit tests

Copy link
Member

Choose a reason for hiding this comment

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

Looks like the issue is formatting, not the test itself. try running make format. if you get that whole "100+ files changed" thing again lemme know and I can send you a diff to git apply.

Copy link
Member

@stuqdog stuqdog left a comment

Choose a reason for hiding this comment

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

lgtm, modulo formatting fixes.

@JosephBorodach
Copy link
Member Author

This pr was replaced by this

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