I\'m trying to write a test around download functionality in a React component that uses \'js-file-download\'. I have been able to mock it a couple ways in my test: