mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-16 22:14:46 +00:00
Adds owner field and fixes tests
This commit is contained in:
1 parent
1a7a6dabbe
commit
4294bbe0e2
2 files changed
+18
-14
No files matched your search
@@ -11,6 +11,10 @@ const defaultDomain = {
|
||||
name: 'aaa',
|
||||
forceHttps: false,
|
||||
record: { A: ['121.121.121.121'] },
|
||||
owner: {
|
||||
username: 'betsy',
|
||||
email: 'betsyfuckyoassup@foobar.com',
|
||||
},
|
||||
};
|
||||
|
||||
describe('validateDomainData', () => {
|
||||
@@ -26,10 +30,9 @@ describe('validateDomainData', () => {
|
||||
...defaultDomain,
|
||||
name,
|
||||
})),
|
||||
{
|
||||
...defaultDomain,
|
||||
description: Array(201).fill('a').join(''),
|
||||
},
|
||||
{ ...defaultDomain, owner: {}, },
|
||||
{ ...defaultDomain, owner: { username: 'hwelo', }, },
|
||||
{ ...defaultDomain, owner: { email: 'hwelo' }, },
|
||||
];
|
||||
|
||||
const validCases = [
|
||||
|
||||
Reference in new issue
Block a user