set default update config

This commit is contained in:
girish@cloudron.io
2016-01-23 05:07:12 -08:00
parent 3a6b9c23c6
commit b72d48b49f
2 changed files with 9 additions and 0 deletions

View File

@@ -131,6 +131,14 @@ describe('Settings', function () {
});
});
it('can get default update config config', function (done) {
settings.getUpdateConfig(function (error, updateConfig) {
expect(error).to.be(null);
expect(updateConfig.prerelease).to.be(false);
done();
});
});
it('can set backup config', function (done) {
settings.setUpdateConfig({ prerelease: true }, function (error) {
expect(error).to.be(null);