Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ScraperTester<T, SO, S>

Type parameters

  • T

  • SO: IScraperOptions

  • S: Scraper<T, SO>

Hierarchy

Index

Constructors

constructor

Properties

scraper

scraper: S

tests

tests: ITest[] = []

Methods

addTest

  • addTest(title: string, exec: ITestExec): this

Protected getTestTarget

  • getTestTarget(): S

run

  • run(): void

Protected runTest

  • runTest(test: ITest): this

testScraping

  • testScraping(urls: string[], options?: SO): this

testUrlDetection

  • testUrlDetection(correctUrls: string[], incorrectUrls?: string[]): this
  • Parameters

    • correctUrls: string[]
    • Optional incorrectUrls: string[]

    Returns this

Static fromStatic

Generated using TypeDoc