Fix tests

This commit is contained in:
Pieter Vander Vennet 2024-08-24 16:45:19 +02:00
parent 7537ee4c32
commit b6a512961d

View file

@ -90,7 +90,8 @@ export default class UrlValidator extends Validator {
* *
* const v = new UrlValidator() * const v = new UrlValidator()
* v.getFeedback("example.").textFor("en") // => "This is not a valid web address" * v.getFeedback("example.").textFor("en") // => "This is not a valid web address"
* v.getFeedback("https://booking.com/some-hotel.html").textFor("en").indexOf("search the official website") > 0 // => true * v.isValid("https://booking.com/some-hotel.html") // => false
* v.getFeedback("https://booking.com/some-hotel.html").textFor("en").indexOf("low-quality") > 0 // => true
* *
*/ */
getFeedback(s: string, getCountry?: () => string): Translation | undefined { getFeedback(s: string, getCountry?: () => string): Translation | undefined {