How to use the rss-parser.parseURLMock.mockImplementation function in rss-parser

To help you get started, we’ve selected a few rss-parser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ArkEcosystem / desktop-wallet / __tests__ / unit / services / feed.spec.js View on Github external
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)
    })

rss-parser

A lightweight RSS parser, for Node and the browser

MIT
Latest version published 1 year ago

Package Health Score

67 / 100
Full package analysis