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

Pub year volume #13

Merged
merged 12 commits into from
Jul 31, 2023
Merged

Pub year volume #13

merged 12 commits into from
Jul 31, 2023

Conversation

smoqadam
Copy link
Contributor

@smoqadam smoqadam commented Jul 31, 2023

@will-byrne will-byrne merged commit 2c25b2b into main Jul 31, 2023
2 checks passed
@will-byrne will-byrne deleted the pub-year-volume branch July 31, 2023 13:38
return {
doi: expression.embodimentOf.doi,
volume: expression.embodimentOf.volumeIdentifier,
eLocationId: expression.embodimentOf.electronicArticleIdentifier,
Copy link
Member

Choose a reason for hiding this comment

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

expression.embodimentOf.doi, expression.embodimentOf.doi and expression.embodimentOf.electronicArticleIdentifier are optional. We should expand the tests to account for this. This feels like it might fail or not return the expect value if one of the embodimentOf properties was not set.

Copy link
Member

Choose a reason for hiding this comment

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

We did add a test to account for one of the props being empty. This resulted in a failing test, because it was retuning undefined for all props, so we expanded the updating of the manuscript data to only set values when the value is truthy. Is this what you wanted to cover? The values returned in this function are only used there, never directly returned to the calling user.

}
Copy link
Member

Choose a reason for hiding this comment

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

These changes should be removed or we should regenerate the the examples?

Copy link
Member

Choose a reason for hiding this comment

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

Yup

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.

6 participants