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

DEVEXP-256: Add timezone response plugin #8

Merged
merged 4 commits into from
Jan 10, 2024

Conversation

asein-sinch
Copy link
Collaborator

This new response plugin is (hopefully) a temporary hack to add the missing timezone (assumption taken it's Z) for the API response where it's missing.

@asein-sinch asein-sinch requested a review from a team January 9, 2024 21:12

expect(result.timestamp).toBe(TIMESTAMP_WITH_MISSING_TIMEZONE);
});
});
Copy link

Choose a reason for hiding this comment

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

What happens when API is updated but SDK is not,
Can you check for case when correct timezone is returned in response?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

New test added

Choose a reason for hiding this comment

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

Not required but another test with a +XX timezone format could ensure regexp coverage

@asein-sinch asein-sinch requested a review from Dovchik January 10, 2024 13:22

expect(result.timestamp).toBe(TIMESTAMP_WITH_MISSING_TIMEZONE);
});
});

Choose a reason for hiding this comment

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

Not required but another test with a +XX timezone format could ensure regexp coverage

@asein-sinch asein-sinch merged commit 1c24cdd into main Jan 10, 2024
3 checks passed
@asein-sinch asein-sinch deleted the DEVEXP-256_timezone-response-plugin branch January 10, 2024 16:03
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.

3 participants