move dashboard setting into dashboard.js
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user