Do not re-create cloudron.conf

All this argument passing going around is just needless

* boxdata/version file is not used
* dashboard config.json is also unused
This commit is contained in:
Girish Ramakrishnan
2018-10-26 09:49:52 -07:00
parent 95d691154d
commit 97567b7d2a
8 changed files with 33 additions and 164 deletions

View File

@@ -38,13 +38,13 @@ describe('config', function () {
it('set saves value in file', function (done) {
config.set('version', '1.3.0');
expect(JSON.parse(fs.readFileSync(path.join(config.baseDir(), 'configs/cloudron.conf'))).version).to.eql('1.3.0');
expect(JSON.parse(fs.readFileSync(path.join(config.baseDir(), 'cloudron.conf'))).version).to.eql('1.3.0');
done();
});
it('set does not save custom values in file', function (done) {
config.set('foobar', 'somevalue');
expect(JSON.parse(fs.readFileSync(path.join(config.baseDir(), 'configs/cloudron.conf'))).foobar).to.not.be.ok();
expect(JSON.parse(fs.readFileSync(path.join(config.baseDir(), 'cloudron.conf'))).foobar).to.not.be.ok();
done();
});