I have written a unit test below:
test(\'getAuthor\', () => { actual = getAuthor(\'\', data, siteMetadata) expect(actual).toEqual(\'Fake Author\')