feat: support dmarc records

This commit is contained in:
William Harrison committed 2024-02-03 19:26:35 +08:00
1 parent f4da39045d
commit 1ea7db7b1e
3 files changed
+4

No files matched your search

+2
View File
@@ -66,6 +66,7 @@ describe('validateDomainData', () => {
{ ...defaultDomain, name: '_discord' },
{ ...defaultDomain, name: '_gitlab-pages-verification-code' },
{ ...defaultDomain, name: '_acme-challenge' },
{ ...defaultDomain, name: '_dmarc' },
];
const validCases = [
@@ -98,6 +99,7 @@ describe('validateDomainData', () => {
{ ...defaultDomain, name: '_discord.subdomain' },
{ ...defaultDomain, name: '_gitlab-pages-verification-code.subdomain' },
{ ...defaultDomain, name: '_acme-challenge.subdomain' },
{ ...defaultDomain, name: '_dmarc.subdomain' },
];
it('should return false for invalid data', () => {