rename backupTargets to backupSites
This commit is contained in:
@@ -13,7 +13,7 @@ const archives = require('../archives.js'),
|
||||
safe = require('safetydance');
|
||||
|
||||
describe('Archives', function () {
|
||||
const { setup, cleanup, auditSource, getDefaultBackupTarget } = common;
|
||||
const { setup, cleanup, auditSource, getDefaultBackupSite } = common;
|
||||
|
||||
const appBackup = {
|
||||
id: null,
|
||||
@@ -28,12 +28,12 @@ describe('Archives', function () {
|
||||
preserveSecs: 0,
|
||||
label: '',
|
||||
appConfig: { loc: 'loc1' },
|
||||
targetId: null
|
||||
siteId: null
|
||||
};
|
||||
|
||||
before(async function () {
|
||||
await setup();
|
||||
appBackup.targetId = (await getDefaultBackupTarget()).id;
|
||||
appBackup.siteId = (await getDefaultBackupSite()).id;
|
||||
appBackup.id = await backups.add(appBackup);
|
||||
});
|
||||
after(cleanup);
|
||||
|
||||
Reference in New Issue
Block a user