Skip to content

Commit bb2309d

Browse files
author
jaxoncreed
committed
Updated test to properly reflect not sending a content-type
1 parent 23da604 commit bb2309d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/integration/http-test.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -573,14 +573,12 @@ describe('HTTP APIs', function () {
573573
.set('slug', 'post-resource-empty-fail')
574574
.expect(415, done)
575575
})
576-
it('should create a resource if parsable rdf is provided but with no content-type header', function (done) {
576+
it('should error with 415 if the body is provided but there is no content-type header', function (done) {
577577
server.post('/post-tests/')
578578
.set('slug', 'post-resource-rdf-no-content-type')
579579
.send(postRequest1Body)
580-
.expect(hasHeader('describedBy', suffixMeta))
581-
.expect(hasHeader('acl', suffixAcl))
582-
.expect('location', '/post-tests/post-resource-rdf-no-content-type')
583-
.expect(201, done)
580+
.set('content-type', '')
581+
.expect(415, done)
584582
})
585583
it('should create new resource even if no trailing / is in the target',
586584
function (done) {

0 commit comments

Comments
 (0)