Fix consistent use of enabledForUpdates -> enableForUpdates
This commit is contained in:
@@ -31,7 +31,7 @@ describe('backups', function () {
|
||||
retention: { keepWithinSecs: 2 * 24 * 60 * 60 },
|
||||
schedule: '00 00 23 * * *',
|
||||
contents: null,
|
||||
enabledForUpdates: true
|
||||
enableForUpdates: true
|
||||
};
|
||||
|
||||
const appBackup = {
|
||||
@@ -54,7 +54,6 @@ describe('backups', function () {
|
||||
|
||||
before(async function () {
|
||||
defaultBackupSite = await getDefaultBackupSite();
|
||||
console.log(defaultBackupSite);
|
||||
appBackup.siteId = defaultBackupSite.id;
|
||||
appBackup.id = await backups.add(appBackup);
|
||||
await archives.add(appBackup.id, {}, auditSource);
|
||||
@@ -78,7 +77,7 @@ describe('backups', function () {
|
||||
expect(backupSite.format).to.be('tgz');
|
||||
expect(backupSite.encryption).to.be(null);
|
||||
expect(backupSite.contents).to.be(null);
|
||||
expect(backupSite.enabledForUpdates).to.be(true);
|
||||
expect(backupSite.enableForUpdates).to.be(true);
|
||||
});
|
||||
|
||||
it('cannot get random backup site', async function () {
|
||||
@@ -123,7 +122,7 @@ describe('backups', function () {
|
||||
it('cannot disable for update', async function () {
|
||||
await backupSites.setEnabledForUpdates(defaultBackupSite, false, auditSource);
|
||||
const backupSite = await backupSites.get(defaultBackupSite.id);
|
||||
expect(backupSite.enabledForUpdates).to.eql(false);
|
||||
expect(backupSite.enableForUpdates).to.eql(false);
|
||||
});
|
||||
|
||||
it('can delete all the backup sites', async function () {
|
||||
|
||||
Reference in New Issue
Block a user