Adds cname record validation

This commit is contained in:
Akshay Nair committed 2020-10-14 18:38:17 +05:30
1 parent 0845948bda
commit 408b542ae7
2 files changed
+9 -5

No files matched your search

+2
View File
@@ -34,6 +34,8 @@ describe('validateDomainData', () => {
{ ...defaultDomain, owner: {}, },
{ ...defaultDomain, owner: { username: 'hwelo', }, },
{ ...defaultDomain, owner: { email: 'hwelo' }, },
{ ...defaultDomain, record: { CNAME: 'http://foobar.com' } },
{ ...defaultDomain, record: { CNAME: 'https://foobar.com' } },
];
const validCases = [