@@ -1330,33 +1330,7 @@ describe("api", function () {
1330
1330
} ) ;
1331
1331
} ) ;
1332
1332
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
-
1359
- it ( 'should restore different versions of a deleted asset' , async function ( ) {
1333
+ it . skip ( 'should restore different versions of a deleted asset' , async function ( ) {
1360
1334
this . timeout ( TIMEOUT . LARGE ) ;
1361
1335
1362
1336
// Upload the same file twice (upload->delete->upload->delete)
@@ -1414,7 +1388,9 @@ describe("api", function () {
1414
1388
expect ( finalDeleteResp ) . to . have . property ( "deleted" ) ;
1415
1389
} ) ;
1416
1390
1417
- it ( 'should restore two different deleted assets' , async ( ) => {
1391
+ it . skip ( 'should restore two different deleted assets' , async ( ) => {
1392
+ this . timeout ( TIMEOUT . LARGE ) ;
1393
+
1418
1394
// Upload two different files
1419
1395
const firstUpload = await uploadImage ( {
1420
1396
public_id : PUBLIC_ID_BACKUP_1 ,
0 commit comments