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:
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user