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

Reference year preserve suffix #2195

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

soggy-mushroom
Copy link
Contributor

No description provided.

@@ -107,10 +107,16 @@ describe('Reference', () => {
expect(screen.getByText('NoGiven').textContent).toStrictEqual('NoGiven');
});

it('should render without a publishedYear', () => {
it.failing('should render without a publishedYear', () => {
Copy link
Member

Choose a reason for hiding this comment

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

This is failing because meta.yearPublished is set but wasn't being shown prior to your adjustment to reference.tsx

Copy link
Member

Choose a reason for hiding this comment

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

We should remove it from the mock so that we can support the existence of this test: https://github.com/elifesciences/enhanced-preprints-client/blob/master/src/utils/mocks/references.ts#L116

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