diff --git a/spec/renderer/unit/utils/validator.spec.ts b/spec/renderer/unit/utils/validator.spec.ts index 8a6493c7..d97b82ad 100644 --- a/spec/renderer/unit/utils/validator.spec.ts +++ b/spec/renderer/unit/utils/validator.spec.ts @@ -2,6 +2,13 @@ import { domainFormat } from '@/utils/validator' describe('validator', () => { describe('domainFormat', () => { + describe('single character domain name', () => { + const domain = 'c.im' + it('should match', () => { + const res = domain.search(domainFormat) + expect(res).toEqual(0) + }) + }) describe('string contains protocol', () => { const domain = 'https://mastodon.social' it('should not match', () => {