File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ describe('sparql update test', function(){
252252 done ( ) ;
253253 } , function ( error ) {
254254 //console.log(error);
255- error . body . errorResponse . message . should . containEql ( 'Invalid content: No query to execute ' ) ;
255+ error . body . errorResponse . message . should . containEql ( 'Unexpected token syntax error, unexpected {, expecting DELETE or INSERT ' ) ;
256256 done ( ) ;
257257 } ) ;
258258 } ) ;
@@ -475,6 +475,21 @@ describe('sparql update test', function(){
475475 done ( ) ;
476476 } , done ) ;
477477 } ) ;
478+
479+ it ( 'should create the graph-Bug38274' , function ( done ) {
480+ var myData = "CREATE GRAPH <http://marklogic.com/sparqlupdate/people> ;"
481+ db . graphs . sparqlUpdate ( 'CREATE GRAPH <http://marklogic.com/sparqlupdate/peoplqe> ;' ) .
482+ result ( function ( response ) {
483+ //console.log(JSON.stringify(response, null, 2));
484+ response . defaultGraph . should . equal ( false ) ;
485+ ( response . graph === null ) . should . be . true ;
486+ response . graphType . should . equal ( 'inline' ) ;
487+ done ( ) ;
488+ } , function ( error ) {
489+ //console.log(JSON.stringify(error, null, 2));
490+ done ( ) ;
491+ } ) ;
492+ } ) ;
478493
479494 it ( 'should drop all graphs' , function ( done ) {
480495 var myData = "DROP ALL ;"
You can’t perform that action at this time.
0 commit comments