I am using Jest and Enzyme to test React components, Now I want to test the given Year element inside given function. I can test element which comes from API. But How can I