Skip to content

Commit 4832a49

Browse files
Test update as per bug 38217
1 parent 7a26678 commit 4832a49

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test-complete/nodejs-graphs-content-type.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ describe('content type graph test', function(){
188188
}, done);
189189
});
190190

191-
it('should run SPARQL query with sparql-results+json content type', function(done){
191+
it('should run SPARQL query with sparql-results+json content type -ve', function(done){
192192
this.timeout(10000);
193193
var myQuery = "DESCRIBE <http://marklogicsparql.com/id#1111>"
194194
db.graphs.sparql({
@@ -197,8 +197,11 @@ describe('content type graph test', function(){
197197
}).
198198
result(function(response){
199199
//console.log(JSON.stringify(response, null, 2));
200-
response.should.containEql('sem:triple(sem:iri(\"http://marklogicsparql.com/id#1111\"), sem:iri(\"http://marklogicsparql.com/worksOn\"), sem:iri(\"http://marklogicsparql.com/Inference\")),sem:triple(sem:iri(\"http://marklogicsparql.com/id#1111\"), sem:iri(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\"), sem:iri(\"http://marklogicsparql.com/LeadEngineer\"))');
201200
done();
201+
},function(err){
202+
//console.log(JSON.stringify(err, null, 2));
203+
err.statusCode.should.equal(406);
204+
done();
202205
}, done);
203206
});
204207

0 commit comments

Comments
 (0)