I have some code as below:
/* global document */ /* global window */ /* global Blob */ import FileSaver from 'file-saver'; export const createDownloadFromBlob = (blob, filename, extension) => { FileSaver.saveAs(blob, `${filename}.${extension}`); }; export const createDownload = (content, filename, extension) => { createDownloadFromBlob(new Blob([content], { type: 'application/octet-stream' }), filename, extension); }; I want to use Jest to unit-test these two methods, but I don't know where to start. Any help would be appreciated.