File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments