improves a record validation

This commit is contained in:
Akshay Nair committed 2020-10-14 18:44:24 +05:30
1 parent 408b542ae7
commit c242535a51
2 files changed
+11 -4

No files matched your search

+2
View File
@@ -31,6 +31,8 @@ describe('validateDomainData', () => {
})),
{ ...defaultDomain, record: { CNAME: 'sd', A: ['121,3213'] } },
{ ...defaultDomain, record: { A: ['121', '12'], FOOBAR: ['sd'] } },
{ ...defaultDomain, record: { A: [] } },
{ ...defaultDomain, record: { A: ['11122'], URL: 'foobar' } },
{ ...defaultDomain, owner: {}, },
{ ...defaultDomain, owner: { username: 'hwelo', }, },
{ ...defaultDomain, owner: { email: 'hwelo' }, },