merge appdb.js into apps.js
This commit is contained in:
@@ -21,10 +21,10 @@ describe('DNS', function () {
|
||||
});
|
||||
|
||||
it('cannot have >63 length subdomains', function () {
|
||||
var s = Array(64).fill('s').join('');
|
||||
const s = Array(64).fill('s').join('');
|
||||
expect(dns.validateHostname(s, domain)).to.be.an(Error);
|
||||
domain.zoneName = `dev.${s}.example.com`;
|
||||
expect(dns.validateHostname(`dev.${s}`, domain)).to.be.an(Error);
|
||||
const domainCopy = Object.assign({}, domain, { zoneName: `dev.${s}.example.com` });
|
||||
expect(dns.validateHostname(`dev.${s}`, domainCopy)).to.be.an(Error);
|
||||
});
|
||||
|
||||
it('allows only alphanumerics and hypen', function () {
|
||||
@@ -39,7 +39,7 @@ describe('DNS', function () {
|
||||
});
|
||||
|
||||
it('total length cannot exceed 255', function () {
|
||||
var s = '';
|
||||
let s = '';
|
||||
for (var i = 0; i < (255 - 'example.com'.length); i++) s += 's';
|
||||
|
||||
expect(dns.validateHostname(s, domain)).to.be.an(Error);
|
||||
|
||||
Reference in New Issue
Block a user