@@ -5,7 +5,7 @@ const tmp = require('tmp');
5
5
const fs = require ( 'fs-extra' ) ;
6
6
7
7
const { SystemError} = require ( '../../../../lib/errors' ) ;
8
- const { getBaseUrl, isSetup, setup, runImport, downloadExport } = require ( '../../../../lib/tasks/import/api' ) ;
8
+ const { getBaseUrl, isSetup, setup, runImport, downloadContentExport } = require ( '../../../../lib/tasks/import/api' ) ;
9
9
10
10
const testUrl = 'http://localhost:2368' ;
11
11
@@ -360,7 +360,7 @@ describe('Unit > Tasks > Import > setup', function () {
360
360
} ) ;
361
361
} ) ;
362
362
363
- describe ( 'downloadExport ' , function ( ) {
363
+ describe ( 'downloadContentExport ' , function ( ) {
364
364
it ( '1.x' , async function ( ) {
365
365
const clientId = 'client-id' ;
366
366
const clientSecret = 'client-secret' ;
@@ -409,7 +409,7 @@ describe('Unit > Tasks > Import > setup', function () {
409
409
const tmpDir = tmp . dirSync ( ) ;
410
410
const outputFile = path . join ( tmpDir . name , '1.x.json' ) ;
411
411
412
- await downloadExport ( '1.0.0' , testUrl , {
412
+ await downloadContentExport ( '1.0.0' , testUrl , {
413
413
414
414
password : 'password'
415
415
} , outputFile ) ;
@@ -454,7 +454,7 @@ describe('Unit > Tasks > Import > setup', function () {
454
454
const tmpDir = tmp . dirSync ( ) ;
455
455
const outputFile = path . join ( tmpDir . name , '2.x.json' ) ;
456
456
457
- await downloadExport ( '2.0.0' , 'http://localhost:2368' , {
457
+ await downloadContentExport ( '2.0.0' , 'http://localhost:2368' , {
458
458
459
459
password : 'password'
460
460
} , outputFile ) ;
@@ -498,7 +498,7 @@ describe('Unit > Tasks > Import > setup', function () {
498
498
const tmpDir = tmp . dirSync ( ) ;
499
499
const outputFile = path . join ( tmpDir . name , '3.x.json' ) ;
500
500
501
- await downloadExport ( '3.0.0' , 'http://localhost:2368' , {
501
+ await downloadContentExport ( '3.0.0' , 'http://localhost:2368' , {
502
502
503
503
password : 'password'
504
504
} , outputFile ) ;
@@ -542,7 +542,7 @@ describe('Unit > Tasks > Import > setup', function () {
542
542
const tmpDir = tmp . dirSync ( ) ;
543
543
const outputFile = path . join ( tmpDir . name , '4.x.json' ) ;
544
544
545
- await downloadExport ( '4.0.0' , 'http://localhost:2368' , {
545
+ await downloadContentExport ( '4.0.0' , 'http://localhost:2368' , {
546
546
547
547
password : 'password'
548
548
} , outputFile ) ;
@@ -587,7 +587,7 @@ describe('Unit > Tasks > Import > setup', function () {
587
587
const tmpDir = tmp . dirSync ( ) ;
588
588
const outputFile = path . join ( tmpDir . name , '5.x.json' ) ;
589
589
590
- await downloadExport ( '5.0.0' , 'http://localhost:2368' , {
590
+ await downloadContentExport ( '5.0.0' , 'http://localhost:2368' , {
591
591
592
592
password : 'password'
593
593
} , outputFile ) ;
0 commit comments