Do not use ADMIN_LOCATION in tests

This commit is contained in:
Girish Ramakrishnan
2017-10-25 20:11:12 -07:00
parent b30def3620
commit 593df8ed49
3 changed files with 6 additions and 6 deletions

View File

@@ -135,7 +135,7 @@ describe('Apps', function () {
describe('validateHostname', function () {
it('does not allow admin subdomain', function () {
expect(apps._validateHostname(constants.ADMIN_LOCATION, 'cloudron.us')).to.be.an(Error);
expect(apps._validateHostname('my', 'cloudron.us')).to.be.an(Error);
});
it('cannot have >63 length subdomains', function () {