Home Identifier Source Test Repository

Test

Description Identifier Count

should simply check given url

-

should simply check broken url (404)

-

should simply check broken url (500)

-

should skip links without href attributes

-

should not check same url twice (absolute url)

-

should not check same url twice (relative url)

-

should use pending queue for small concurrency

-

should mark url as broken if timeout was occur

-

should mark url as valid if timeout is greater then server response time

-

should mark url as broken if timeout was occur for all attempts

-

should mark url as valid if it was checked from second attempt

-

should not check urls with another schemes

-

should check urls with schemes from array of acceptedSchemes

-

should mark url as broken in case of not accessible request headers

-

should check url in case of accessible request headers

-

should not check excluded urls

-

should not check external link

-

should check external link

-

should check and mark broken external link

-

should mark url as broken if timeout was occur for all attempts

-

should mark url as valid if it was checked from second attempt

-

should create configuration directory

-

should create configuration stub

-

should create configuration file

-

should throw error if config param was not set

-

should throw error if config file is missed

-

with default params

-

with custom params

-

should get valid option value

-

should set option value for given option name

-

should set default value if option was not set

-

should have default onDone handler

-

should be initialized with default params if options were not set

-

should be initialized with default params if options are empty

-

should override default concurrent option

-

should override default requestHeaders option

-

should override default requestRetriesAmount option

-

should override default requestTimeout option

-

should override default acceptedSchemes rule

-

should override default checkExternalUrls option

-

should override default excludeLinkPatterns rule

-

should throw error if url param was not set

-

should throw error if url param has invalid format

-

should return valid request options object

-

should have valid _url field value after initialization

-

should have valid _options field value after initialization

-

should return true if scheme of given url does not exist in list of acceptable acceptedSchemes

-

should return false if scheme of given url exists in list of acceptable acceptedSchemes

-

should return false if checkExternalUrls option is set to true

-

should return true if host of given url is different then host of initial url

-

should return false if host of given url is the same as host of initial url

-

should return false in case of empty "excludeLinkPatterns" array

-

should return false if any of excluded patterns does not match given url

-

should return true if any excluded patterns matches on given url

-

should return false for mode "page" and direct links of target page

-

should return true for mode "page" and non-direct links of target page

-

should return false for mode "section" and sub-links of initial link

-

should return false for mode "section" and sibling of initial link

-

should return false for mode "section" and parent of initial link

-

should return true for mode "section" and page outside of section

-
test/src/link-analyzer.test.js -

should initialize empty broken urls model after initialization

-

should add broken links model item to list of broken links

-

should return all broke link items from model

-

should return valid set of broken link items by given status code

-

should return valid set of broken link items by status code 404

-

should return valid set of broken link items by status code 500

-

should return instance of BrokenUrls class

-

should clear broken link items model

-

should create BrokenUrls instance by static method

-

should have res getter

-

should have url getter

-

should have $ getter

-

should resolve link url based on _url

-

should set value to _res field

-

should set value to _url field

-

should set value to _$ field

-

should increase internal count

-

should increase external count

-

should return valid internal count value

-

should return valid external count value

-

should return valid count of all processed urls

-

should return broken links model

-

should return valid result of getBrokenCount method

-

should return instance of Statistic class by create static method

-

should have zero _countExternal value after initialization

-

should have zero _countInternal value after initialization

-

should have empty broken links model after initialization

-

should create reports folder

-

should create report folder for given config name

-

should save report file

-

should can be initialized

-

should return valid path to configuration folder

-

should return valid path to reports folder

-