Update domain validator tests

This commit is contained in:
AkiraFukushima 2018-07-13 07:59:10 +09:00
parent f15e14c51b
commit a4d9b0258a
1 changed files with 7 additions and 0 deletions

View File

@ -31,6 +31,13 @@ describe('validator', () => {
assert.equal(res, 0)
})
})
context('string is subdomain', () => {
const domain = 'social.tchncs.de'
it('should match', () => {
const res = domain.search(domainFormat)
assert.equal(res, 0)
})
})
context('string is jp domain', () => {
const domain = 'mstdn.co.jp'
it('should match', () => {