@@ -35,7 +35,7 @@ var assert = require('assert');
3535describe ( 'CellsConvertApi' , function ( ) {
3636 this . timeout ( 200000 ) ;
3737 describe ( 'PostConvertWorkbookToPNG' , function ( ) {
38- it ( 'should call PostCompress successfully' , function ( ) {
38+ it ( 'should call PostConvertWorkbookToPNG successfully' , function ( ) {
3939 const cellsApi = BaseTest . initializeCellsApi ( ) ;
4040 var req = new model . PostConvertWorkbookToPNGRequest ( ) ;
4141 req . file = fs . createReadStream ( localPath + "assemblytest.xlsx" ) ;
@@ -47,7 +47,7 @@ describe('CellsConvertApi', function () {
4747 } ) ;
4848
4949 describe ( 'PostConvertWorkbookToPDF' , function ( ) {
50- it ( 'should call PostCompress successfully' , function ( ) {
50+ it ( 'should call PostConvertWorkbookToPDF successfully' , function ( ) {
5151 const cellsApi = BaseTest . initializeCellsApi ( ) ;
5252 var req = new model . PostConvertWorkbookToPDFRequest ( ) ;
5353 req . file = fs . createReadStream ( localPath + "assemblytest.xlsx" ) ;
@@ -59,7 +59,7 @@ describe('CellsConvertApi', function () {
5959 } ) ;
6060
6161 describe ( 'PostConvertWorkbookToDocx' , function ( ) {
62- it ( 'should call PostCompress successfully' , function ( ) {
62+ it ( 'should call PostConvertWorkbookToDocx successfully' , function ( ) {
6363 const cellsApi = BaseTest . initializeCellsApi ( ) ;
6464 var req = new model . PostConvertWorkbookToDocxRequest ( ) ;
6565 req . file = fs . createReadStream ( localPath + "assemblytest.xlsx" ) ;
@@ -71,7 +71,7 @@ describe('CellsConvertApi', function () {
7171 } ) ;
7272
7373 describe ( 'PostConvertWorkbookToPptx' , function ( ) {
74- it ( 'should call PostCompress successfully' , function ( ) {
74+ it ( 'should call PostConvertWorkbookToPptx successfully' , function ( ) {
7575 const cellsApi = BaseTest . initializeCellsApi ( ) ;
7676 var req = new model . PostConvertWorkbookToPptxRequest ( ) ;
7777 req . file = fs . createReadStream ( localPath + "assemblytest.xlsx" ) ;
@@ -83,7 +83,7 @@ describe('CellsConvertApi', function () {
8383 } ) ;
8484
8585 describe ( 'PostConvertWorkbookToHtml' , function ( ) {
86- it ( 'should call PostCompress successfully' , function ( ) {
86+ it ( 'should call PostConvertWorkbookToHtml successfully' , function ( ) {
8787 const cellsApi = BaseTest . initializeCellsApi ( ) ;
8888 var req = new model . PostConvertWorkbookToHtmlRequest ( ) ;
8989 req . file = fs . createReadStream ( localPath + "assemblytest.xlsx" ) ;
@@ -95,7 +95,7 @@ describe('CellsConvertApi', function () {
9595 } ) ;
9696
9797 describe ( 'PostConvertWorkbookToMarkdown' , function ( ) {
98- it ( 'should call PostCompress successfully' , function ( ) {
98+ it ( 'should call PostConvertWorkbookToMarkdown successfully' , function ( ) {
9999 const cellsApi = BaseTest . initializeCellsApi ( ) ;
100100 var req = new model . PostConvertWorkbookToMarkdownRequest ( ) ;
101101 req . file = fs . createReadStream ( localPath + "assemblytest.xlsx" ) ;
@@ -105,5 +105,37 @@ describe('CellsConvertApi', function () {
105105 } ) ;
106106 } ) ;
107107 } ) ;
108-
108+ describe ( 'PostConvertWorkbookToJson' , function ( ) {
109+ it ( 'should call PostConvertWorkbookToJson successfully' , function ( ) {
110+ const cellsApi = BaseTest . initializeCellsApi ( ) ;
111+ var req = new model . PostConvertWorkbookToJsonRequest ( ) ;
112+ req . file = fs . createReadStream ( localPath + "assemblytest.xlsx" ) ;
113+ return cellsApi . postConvertWorkbookToJson ( req )
114+ . then ( ( result ) => {
115+ expect ( result . response . statusCode ) . to . equal ( 200 ) ;
116+ } ) ;
117+ } ) ;
118+ } ) ;
119+ describe ( 'PostConvertWorkbookToSQL' , function ( ) {
120+ it ( 'should call PostConvertWorkbookToSQL successfully' , function ( ) {
121+ const cellsApi = BaseTest . initializeCellsApi ( ) ;
122+ var req = new model . PostConvertWorkbookToSQLRequest ( ) ;
123+ req . file = fs . createReadStream ( localPath + "assemblytest.xlsx" ) ;
124+ return cellsApi . postConvertWorkbookToSQL ( req )
125+ . then ( ( result ) => {
126+ expect ( result . response . statusCode ) . to . equal ( 200 ) ;
127+ } ) ;
128+ } ) ;
129+ } ) ;
130+ describe ( 'PostConvertWorkbookToCSV' , function ( ) {
131+ it ( 'should call PostConvertWorkbookToCSV successfully' , function ( ) {
132+ const cellsApi = BaseTest . initializeCellsApi ( ) ;
133+ var req = new model . PostConvertWorkbookToCSVRequest ( ) ;
134+ req . file = fs . createReadStream ( localPath + "assemblytest.xlsx" ) ;
135+ return cellsApi . postConvertWorkbookToCSV ( req )
136+ . then ( ( result ) => {
137+ expect ( result . response . statusCode ) . to . equal ( 200 ) ;
138+ } ) ;
139+ } ) ;
140+ } ) ;
109141} ) ;
0 commit comments