-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3015 from fernandollisboa/fix/domain-default-vali…
…dation fix: domain default tld validation
- Loading branch information
Showing
2 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1323,7 +1323,8 @@ describe('string', () => { | |
type: 'string.domain', | ||
context: { value: '"example.com', label: 'value' } | ||
}], | ||
['[email protected]', false, '"value" must contain a valid domain name'] | ||
['[email protected]', false, '"value" must contain a valid domain name'], | ||
['joi.dev.whatevertldiwant', false, '"value" must contain a valid domain name'] | ||
]); | ||
}); | ||
|
||
|
@@ -1496,7 +1497,8 @@ describe('string', () => { | |
type: 'string.email', | ||
context: { value: '123456789012345678901234567890123456789012345678901234567890@12345678901234567890123456789012345678901234567890123456789.12345678901234567890123456789012345678901234567890123456789.12345678901234567890123456789012345678901234567890123456789.12345.toolong.com', invalids: ['123456789012345678901234567890123456789012345678901234567890@12345678901234567890123456789012345678901234567890123456789.12345678901234567890123456789012345678901234567890123456789.12345678901234567890123456789012345678901234567890123456789.12345.toolong.com'], label: 'value' } | ||
}], | ||
['foo@bar%2ecom', false, '"value" must be a valid email'] | ||
['foo@bar%2ecom', false, '"value" must be a valid email'], | ||
['[email protected]', false, '"value" must be a valid email'] | ||
]); | ||
}); | ||
|
||
|