Skip to content

Commit 3ee6920

Browse files
Automation for Issue 236
1 parent 0b83029 commit 3ee6920

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

test-complete/nodejs-sparql-update.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff 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 ;"

0 commit comments

Comments
 (0)