@@ -23,8 +23,8 @@ var dbWriter = marklogic.createDatabaseClient(testconfig.restWriterConnection);
2323describe ( 'Endpoint caller' , function ( ) {
2424
2525 it ( 'moduleInitSjs endpoint' , function ( done ) {
26- const serviceDeclaration = JSON . parse ( fs . readFileSync ( 'test-basic-proxy/ml-modules/generated/moduleInitSjs/service.json' , { encoding : 'utf8' } ) ) ;
27- const endpointDeclaration = JSON . parse ( fs . readFileSync ( 'test-basic-proxy/ml-modules/generated/moduleInitSjs/initializer.api' , { encoding : 'utf8' } ) ) ;
26+ const serviceDeclaration = JSON . parse ( fs . readFileSync ( './ test-basic-proxy/ml-modules/generated/moduleInitSjs/service.json' , { encoding : 'utf8' } ) ) ;
27+ const endpointDeclaration = JSON . parse ( fs . readFileSync ( './ test-basic-proxy/ml-modules/generated/moduleInitSjs/initializer.api' , { encoding : 'utf8' } ) ) ;
2828 endpointDeclaration . endpoint = serviceDeclaration . endpointDirectory + endpointDeclaration . functionName + '.sjs' ;
2929 const endpointCaller = dbWriter . endpointCaller ( endpointDeclaration ) ;
3030 const params = { param1 :true , param2 : '1.2' , param3 : [ 1.2 , 3.4 ] , param4 :[ 5 , 6 ] } ;
@@ -41,8 +41,8 @@ describe('Endpoint caller', function() {
4141 } ) ;
4242
4343 it ( 'moduleInitXqy endpoint' , function ( done ) {
44- const serviceDeclaration = JSON . parse ( fs . readFileSync ( 'test-basic-proxy/ml-modules/generated/moduleInitXqy/service.json' , { encoding : 'utf8' } ) ) ;
45- const endpointDeclaration = JSON . parse ( fs . readFileSync ( 'test-basic-proxy/ml-modules/generated/moduleInitXqy/initializer.api' , { encoding : 'utf8' } ) ) ;
44+ const serviceDeclaration = JSON . parse ( fs . readFileSync ( './ test-basic-proxy/ml-modules/generated/moduleInitXqy/service.json' , { encoding : 'utf8' } ) ) ;
45+ const endpointDeclaration = JSON . parse ( fs . readFileSync ( './ test-basic-proxy/ml-modules/generated/moduleInitXqy/initializer.api' , { encoding : 'utf8' } ) ) ;
4646 endpointDeclaration . endpoint = serviceDeclaration . endpointDirectory + endpointDeclaration . functionName + '.xqy' ;
4747 const endpointCaller = dbWriter . endpointCaller ( endpointDeclaration ) ;
4848 const params = { param1 :true , param2 : '1.2' , param3 : [ 1.2 , 3.4 ] , param4 :[ 5 , 6 ] } ;
@@ -59,9 +59,9 @@ describe('Endpoint caller', function() {
5959 } ) ;
6060
6161 it ( 'postOfMultipartForDocumentArray1 endpoint' , function ( done ) {
62- const serviceDeclaration = JSON . parse ( fs . readFileSync ( 'test-basic-proxy/ml-modules/generated/postOfMultipartForDocument/service.json' ,
62+ const serviceDeclaration = JSON . parse ( fs . readFileSync ( './ test-basic-proxy/ml-modules/generated/postOfMultipartForDocument/service.json' ,
6363 { encoding : 'utf8' } ) ) ;
64- const endpointDeclaration = JSON . parse ( fs . readFileSync ( 'test-basic-proxy/ml-modules/generated/postOfMultipartForDocument/postOfMultipartForDocumentArray1.api' ,
64+ const endpointDeclaration = JSON . parse ( fs . readFileSync ( './ test-basic-proxy/ml-modules/generated/postOfMultipartForDocument/postOfMultipartForDocumentArray1.api' ,
6565 { encoding : 'utf8' } ) ) ;
6666 endpointDeclaration . endpoint = serviceDeclaration . endpointDirectory + endpointDeclaration . functionName + '.sjs' ;
6767 const endpointCaller = dbWriter . endpointCaller ( endpointDeclaration ) ;
@@ -79,9 +79,9 @@ describe('Endpoint caller', function() {
7979 } ) ;
8080
8181 it ( 'postOfUrlencodedForDocumentArray1 endpoint' , function ( done ) {
82- const serviceDeclaration = JSON . parse ( fs . readFileSync ( 'test-basic-proxy/ml-modules/generated/postOfUrlencodedForDocument/service.json' ,
82+ const serviceDeclaration = JSON . parse ( fs . readFileSync ( './ test-basic-proxy/ml-modules/generated/postOfUrlencodedForDocument/service.json' ,
8383 { encoding : 'utf8' } ) ) ;
84- const endpointDeclaration = JSON . parse ( fs . readFileSync ( 'test-basic-proxy/ml-modules/generated/postOfUrlencodedForDocument/postOfUrlencodedForDocumentArray1.api' ,
84+ const endpointDeclaration = JSON . parse ( fs . readFileSync ( './ test-basic-proxy/ml-modules/generated/postOfUrlencodedForDocument/postOfUrlencodedForDocumentArray1.api' ,
8585 { encoding : 'utf8' } ) ) ;
8686 endpointDeclaration . endpoint = serviceDeclaration . endpointDirectory + endpointDeclaration . functionName + '.mjs' ;
8787 const endpointCaller = dbWriter . endpointCaller ( endpointDeclaration ) ;
0 commit comments