move dashboard setting into dashboard.js

This commit is contained in:
Girish Ramakrishnan
2023-08-11 19:41:05 +05:30
parent 27ce8f9351
commit eee49a8291
25 changed files with 157 additions and 156 deletions
+4 -5
View File
@@ -8,11 +8,10 @@
const constants = require('../../constants.js'),
common = require('./common.js'),
expect = require('expect.js'),
superagent = require('superagent'),
settings = require('../../settings.js');
superagent = require('superagent');
describe('Cloudron API', function () {
const { setup, cleanup, serverUrl, owner, user } = common;
const { setup, cleanup, serverUrl, owner, user, dashboardFqdn } = common;
before(setup);
after(cleanup);
@@ -32,7 +31,7 @@ describe('Cloudron API', function () {
expect(response.statusCode).to.equal(200);
expect(response.body.apiServerOrigin).to.eql('http://localhost:6060');
expect(response.body.webServerOrigin).to.eql('https://cloudron.io');
expect(response.body.adminFqdn).to.eql(settings.dashboardFqdn());
expect(response.body.adminFqdn).to.eql(dashboardFqdn);
expect(response.body.version).to.eql(constants.VERSION);
expect(response.body.cloudronName).to.be.a('string');
});
@@ -44,7 +43,7 @@ describe('Cloudron API', function () {
expect(response.statusCode).to.equal(200);
expect(response.body.apiServerOrigin).to.eql('http://localhost:6060');
expect(response.body.webServerOrigin).to.eql('https://cloudron.io');
expect(response.body.adminFqdn).to.eql(settings.dashboardFqdn());
expect(response.body.adminFqdn).to.eql(dashboardFqdn);
expect(response.body.version).to.eql(constants.VERSION);
expect(response.body.cloudronName).to.be.a('string');
});