1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2025-02-04 03:07:36 +01:00

Update domain validator tests

This commit is contained in:
AkiraFukushima 2018-07-13 07:59:10 +09:00
parent f15e14c51b
commit a4d9b0258a

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', () => {