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:
parent
f15e14c51b
commit
a4d9b0258a
@ -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', () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user