Use a persistent file for dns sync flag

This commit is contained in:
Johannes Zellner
2015-10-21 16:42:17 +02:00
parent 289fe76adc
commit 9f19b0bc9e
2 changed files with 22 additions and 1 deletions

View File

@@ -28,6 +28,17 @@ describe('config', function () {
done();
});
it('dnsInSync() is unset', function (done) {
expect(config.dnsInSync()).to.not.be.ok();
done();
});
it('dnsInSync() is set', function (done) {
config.setDnsInSync();
expect(config.dnsInSync()).to.be.ok();
done();
});
it('cloudron.conf generated automatically', function (done) {
expect(fs.existsSync(path.join(config.baseDir(), 'configs/cloudron.conf'))).to.be.ok();
done();