Search
Preparing search index...
The search index is not available
source-scraper-test-utils
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
ScraperTester
Class ScraperTester<T, SO, S>
Type parameters
T
SO
:
IScraperOptions
S
:
Scraper
<
T
,
SO
>
Hierarchy
Tester
<
S
>
ScraperTester
Index
Constructors
constructor
Properties
scraper
tests
Methods
add
Test
get
Test
Target
run
run
Test
test
Scraping
test
Url
Detection
from
Static
Constructors
constructor
new
Scraper
Tester
(
scraper
:
S
)
:
ScraperTester
Parameters
scraper:
S
Returns
ScraperTester
Properties
scraper
scraper
:
S
tests
tests
:
ITest
[]
= []
Methods
add
Test
add
Test
(
title
:
string
, exec
:
ITestExec
)
:
this
Parameters
title:
string
exec:
ITestExec
Returns
this
Protected
get
Test
Target
get
Test
Target
(
)
:
S
Returns
S
run
run
(
)
:
void
Returns
void
Protected
run
Test
run
Test
(
test
:
ITest
)
:
this
Parameters
test:
ITest
Returns
this
test
Scraping
test
Scraping
(
urls
:
string
[]
, options
?:
SO
)
:
this
Parameters
urls:
string
[]
Optional
options:
SO
Returns
this
test
Url
Detection
test
Url
Detection
(
correctUrls
:
string
[]
, incorrectUrls
?:
string
[]
)
:
this
Parameters
correctUrls:
string
[]
Optional
incorrectUrls:
string
[]
Returns
this
Static
from
Static
from
Static<T, SO, S>
(
runner
:
IStatic
<
S
>
)
:
ScraperTester
<
T
,
SO
,
S
>
Type parameters
T
SO
:
IScraperOptions
S
:
Scraper
<
T
,
SO
>
Parameters
runner:
IStatic
<
S
>
Returns
ScraperTester
<
T
,
SO
,
S
>
Globals
Runner
Tester
Scraper
Tester
constructor
scraper
tests
add
Test
get
Test
Target
run
run
Test
test
Scraping
test
Url
Detection
from
Static
Tester
ITest
IArgs
Test
IStatic
ITest
Exec
Generated using
TypeDoc