UNPKG

torrent-search-api

Version:

Yet another node torrent scraper based on x-ray. (Support iptorrents, torrentleech, torrent9, Yyggtorrent, ThePriatebay, torrentz2, 1337x, KickassTorrent, Rarbg, TorrentProject, Extratorrent)

9 lines (7 loc) 317 B
const { readdirSync } = require('fs'); const { createProviderHtmlSnapshotTestFromFilename } = require('./utils/testHelpers'); describe('Test providers with html snapshots', () => { readdirSync('./test/html-snapshots') .filter(f => f.endsWith('.html')) .map(createProviderHtmlSnapshotTestFromFilename); });