Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should retrieve the feed and parse it', async () => {
parseURLMock.mockImplementation(url => url === feed.feedUrl ? feed : null)
expect(await feedService.fetchAndParse(feed.feedUrl)).toEqual(feed)
})