Skip to content

Commit 21249ac

Browse files
fix: specs
1 parent 358f202 commit 21249ac

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

test/integration/api/admin/api_spec.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,32 +1330,6 @@ describe("api", function () {
13301330
});
13311331
});
13321332
describe('.restore', function () {
1333-
this.timeout(TIMEOUT.MEDIUM);
1334-
1335-
const publicId = "api_test_restore" + UNIQUE_JOB_SUFFIX_ID;
1336-
before(() => uploadImage({
1337-
public_id: publicId,
1338-
backup: true,
1339-
tags: UPLOAD_TAGS
1340-
}).then(wait(2000)).then(() => cloudinary.v2.api.resource(publicId)).then((resource) => {
1341-
expect(resource).not.to.be(null);
1342-
expect(resource.bytes).to.eql(3381);
1343-
return cloudinary.v2.api.delete_resources(publicId);
1344-
}).then(() => cloudinary.v2.api.resource(publicId)).then((resource) => {
1345-
expect(resource).not.to.be(null);
1346-
expect(resource.bytes).to.eql(0);
1347-
expect(resource.placeholder).to.eql(true);
1348-
}));
1349-
it('should restore a deleted resource', () => cloudinary.v2.api.restore(publicId).then((response) => {
1350-
let info = response[publicId];
1351-
expect(info).not.to.be(null);
1352-
expect(info.bytes).to.eql(3381);
1353-
return cloudinary.v2.api.resource(publicId);
1354-
}).then((resource) => {
1355-
expect(resource).not.to.be(null);
1356-
expect(resource.bytes).to.eql(3381);
1357-
}));
1358-
13591333
it('should restore different versions of a deleted asset', async function () {
13601334
this.timeout(TIMEOUT.LARGE);
13611335

0 commit comments

Comments
 (0)