UNPKG

torrent-search-api

Version:

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

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); });