Skip to content

Commit 5908b87

Browse files
author
deiu
committed
Added missing test for turtle accept header
1 parent 37c8845 commit 5908b87

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎test/formats.js‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ describe('formats', function () {
5757
});
5858
});
5959

60+
describe('turtle', function() {
61+
it('Should return turtle document if Accept is set to turtle', function(done) {
62+
server.get('/patch-5-initial.ttl')
63+
.set('accept', 'text/turtle;q=0.9,application/rdf+xml;q=0.8,text/plain;q=0.7,*/*;q=0.5')
64+
.expect('content-type', /text\/turtle/)
65+
.expect(200, done);
66+
});
67+
});
68+
6069
describe('none', function() {
6170
it('Should return turtle document if no Accept header is set', function(done) {
6271
server.get('/patch-5-initial.ttl')

0 commit comments

Comments
 (0)