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

Update proptypes for contentId and triggerElementProps #211

Closed
wants to merge 2 commits into from

Conversation

SimpleCookie
Copy link

Sorry the pull request isn't completely proper, I just had to test a few things for my own sake. You could take over this PR and do as you wish, merge it or decline it, up to you.

I had updated the dependency for react-collapsible in my local project and my snapshot tests were failing because of the date() function. I also thought I could specify the props a bit better rather than just "object". Although I'm sure some props are missing, feel free to add in.

@SimpleCookie
Copy link
Author

SimpleCookie commented Oct 11, 2021

I resolved the failing tests in my local project by
jest.useFakeTimers("modern").setSystemTime(new Date("2021-01-01").getTime())
a better or more suitable solution would be Date.now = jest.fn().mockReturnValue(1577836800900)
So this PR isn't crucial for me personally.

Use constant for Date.now()
@karltaylor
Copy link
Collaborator

Ok cool I'll close this PR

@karltaylor karltaylor closed this May 26, 2022
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