@@ -1330,33 +1330,7 @@ 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-
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 ( ) {
13601334 this . timeout ( TIMEOUT . LARGE ) ;
13611335
13621336 // Upload the same file twice (upload->delete->upload->delete)
@@ -1414,7 +1388,9 @@ describe("api", function () {
14141388 expect ( finalDeleteResp ) . to . have . property ( "deleted" ) ;
14151389 } ) ;
14161390
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+
14181394 // Upload two different files
14191395 const firstUpload = await uploadImage ( {
14201396 public_id : PUBLIC_ID_BACKUP_1 ,
0 commit comments