Skip to content

Commit dd099ce

Browse files
author
deiu
committed
Fixed mime type for JSON-LD
1 parent 2aa9efd commit dd099ce

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎test/formats.js‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ var fs = require('fs');
55
var S = require('string');
66
var ldnode = require('../index');
77

8+
var accepts = 'application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5';
9+
810
describe('formats', function () {
911
var address = 'http://localhost:3457';
1012
var ldp = ldnode.createServer({
@@ -28,13 +30,13 @@ describe('formats', function () {
2830
};
2931
it('Should return JSON-LD document', function(done) {
3032
server.get('/patch-5-initial.ttl')
31-
.set('accept', 'application/json+ld')
32-
.expect('content-type', /application\/json\+ld/)
33+
.set('accept', 'application/ld+json')
34+
.expect('content-type', /application\/ld\+json/)
3335
.expect(200, done);
3436
});
3537
it('Should return valid JSON', function(done) {
3638
server.get('/patch-5-initial.ttl')
37-
.set('accept', 'application/json+ld')
39+
.set('accept', 'application/ld+json')
3840
.expect(isValidJSON)
3941
.expect(200, done);
4042
});

0 commit comments

Comments
 (0)