merge appdb.js into apps.js

This commit is contained in:
Girish Ramakrishnan
2021-08-20 09:19:44 -07:00
parent b6f2d6d620
commit 77f5cb183b
39 changed files with 1599 additions and 2495 deletions

View File

@@ -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);