mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-21 06:30:49 -06:00
docs: comment out external url validation until url linking strategy is more thoroughly discussed
This commit is contained in:
@@ -54,17 +54,18 @@ function validateExternalUrl (href, source) {
|
||||
|
||||
return request(href)
|
||||
.then((html) => {
|
||||
return
|
||||
// bail if we dont have a hash
|
||||
if (!hash) {
|
||||
return
|
||||
}
|
||||
|
||||
assertHashIsPresent(href, source, hash, html)
|
||||
})
|
||||
.catch(errors.StatusCodeError, (err) => {
|
||||
err.message = `Request to: ${href} failed. (Status Code ${err.statusCode})`
|
||||
throw err
|
||||
// if (!hash) {
|
||||
// return
|
||||
// }
|
||||
//
|
||||
// assertHashIsPresent(href, source, hash, html)
|
||||
})
|
||||
// .catch(errors.StatusCodeError, (err) => {
|
||||
// err.message = `Request to: ${href} failed. (Status Code ${err.statusCode})`
|
||||
// throw err
|
||||
// })
|
||||
}
|
||||
|
||||
function normalizeNestedPaths (data) {
|
||||
|
||||
Reference in New Issue
Block a user