@@ -592,20 +592,39 @@ describe('integration-all-services', function() {
592
592
593
593
describe ( 'functional_document_conversion' , function ( ) {
594
594
this . timeout ( TWENTY_SECONDS ) ;
595
- var document_conversion = watson . document_conversion ( auth . document_conversion ) ;
596
- it ( 'convertFile()' , function ( done ) {
597
- document_conversion . convert ( {
598
- file : fs . createReadStream ( __dirname + '/resources/sampleWORD.docx' ) ,
599
- conversion_target : 'ANSWER_UNITS' ,
600
- // word: {
601
- // heading: {
602
- // fonts: [
603
- // { level: 1, min_size: 24 },
604
- // { level: 2, min_size: 16, max_size: 24 }
605
- // ]
606
- // }
607
- // }
608
- } , failIfError . bind ( failIfError , done ) ) ;
595
+ describe ( 'v1-experimental' , function ( ) {
596
+ it ( 'convertFile()' , function ( done ) {
597
+ var document_conversion = watson . document_conversion ( auth . document_conversion [ 'v1-experimental' ] ) ;
598
+ document_conversion . convert ( {
599
+ file : fs . createReadStream ( __dirname + '/resources/sampleWORD.docx' ) ,
600
+ conversion_target : 'ANSWER_UNITS' ,
601
+ // word: {
602
+ // heading: {
603
+ // fonts: [
604
+ // { level: 1, min_size: 24 },
605
+ // { level: 2, min_size: 16, max_size: 24 }
606
+ // ]
607
+ // }
608
+ // }
609
+ } , failIfError . bind ( failIfError , done ) ) ;
610
+ } ) ;
611
+ } ) ;
612
+ describe ( 'v1' , function ( ) {
613
+ it ( 'convertFile()' , function ( done ) {
614
+ var document_conversion = watson . document_conversion ( auth . document_conversion . v1 ) ;
615
+ document_conversion . convert ( {
616
+ file : fs . createReadStream ( __dirname + '/resources/sampleWORD.docx' ) ,
617
+ conversion_target : 'ANSWER_UNITS' ,
618
+ // word: {
619
+ // heading: {
620
+ // fonts: [
621
+ // { level: 1, min_size: 24 },
622
+ // { level: 2, min_size: 16, max_size: 24 }
623
+ // ]
624
+ // }
625
+ // }
626
+ } , failIfError . bind ( failIfError , done ) ) ;
627
+ } ) ;
609
628
} ) ;
610
629
} ) ;
611
630
} ) ;
0 commit comments