fix tests

This commit is contained in:
Girish Ramakrishnan
2025-07-15 09:07:23 +02:00
parent bb257f2bf2
commit be9adb64bb
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -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)));