fix tests
This commit is contained in:
@@ -244,6 +244,11 @@ describe('Storage', function () {
|
||||
await fs.promises.copyFile(path.join(basePath, params.CopySource.replace(/%2B/g, '+')), path.join(bucketPath, params.Key)); // CopySource already has the bucket path!
|
||||
}
|
||||
|
||||
async deleteObject(params) {
|
||||
expect(params.Bucket).to.be(backupConfig.bucket);
|
||||
fs.rmSync(path.join(bucketPath, params.Key));
|
||||
}
|
||||
|
||||
async deleteObjects(params) {
|
||||
expect(params.Bucket).to.be(backupConfig.bucket);
|
||||
params.Delete.Objects.forEach(o => fs.rmSync(path.join(bucketPath, o.Key)));
|
||||
|
||||
Reference in New Issue
Block a user