@@ -510,7 +510,7 @@ describe('HTTP APIs', function () {
510510 server . post ( '/post-tests/' )
511511 . send ( postRequest1Body )
512512 . set ( 'content-type' , 'text/turtle' )
513- . set ( 'slug' , 'post-resource-1.ttl ' )
513+ . set ( 'slug' , 'post-resource-1' )
514514 . expect ( 'location' , / \/ p o s t - r e s o u r c e - 1 / )
515515 . expect ( hasHeader ( 'describedBy' , suffixMeta ) )
516516 . expect ( hasHeader ( 'acl' , suffixAcl ) )
@@ -521,7 +521,7 @@ describe('HTTP APIs', function () {
521521 server . post ( '' )
522522 . send ( postRequest1Body )
523523 . set ( 'content-type' , 'text/turtle' )
524- . set ( 'slug' , 'post-test-target.ttl ' )
524+ . set ( 'slug' , 'post-test-target' )
525525 . expect ( 'location' , / \/ p o s t - t e s t - t a r g e t \. t t l / )
526526 . expect ( hasHeader ( 'describedBy' , suffixMeta ) )
527527 . expect ( hasHeader ( 'acl' , suffixAcl ) )
@@ -531,15 +531,15 @@ describe('HTTP APIs', function () {
531531 server . post ( '/hello.html/' )
532532 . send ( postRequest1Body )
533533 . set ( 'content-type' , 'text/turtle' )
534- . set ( 'slug' , 'post-test-target2.ttl ' )
534+ . set ( 'slug' , 'post-test-target2' )
535535 . expect ( 404 , done )
536536 } )
537537 it ( 'should create a new slug if there is a resource with the same name' ,
538538 function ( done ) {
539539 server . post ( '/post-tests/' )
540540 . send ( postRequest1Body )
541541 . set ( 'content-type' , 'text/turtle' )
542- . set ( 'slug' , 'post-resource-1.ttl ' )
542+ . set ( 'slug' , 'post-resource-1' )
543543 . expect ( 201 , done )
544544 } )
545545 it ( 'should be able to delete newly created resource' , function ( done ) {
@@ -624,9 +624,9 @@ describe('HTTP APIs', function () {
624624 . then ( res => { response = res } )
625625 )
626626
627- it ( 'is assigned an extensionless URL' , ( ) => {
627+ it ( 'is assigned an URL with the .ttl extension ' , ( ) => {
628628 expect ( response . headers ) . to . have . property ( 'location' )
629- expect ( response . headers . location ) . to . match ( / ^ \/ p o s t - t e s t s \/ [ ^ . / ] + $ / )
629+ expect ( response . headers . location ) . to . match ( / ^ \/ p o s t - t e s t s \/ [ ^ . / ] + \. t t l $ / )
630630 } )
631631 } )
632632
@@ -639,8 +639,8 @@ describe('HTTP APIs', function () {
639639 . then ( res => { response = res } )
640640 )
641641
642- it ( 'is assigned an extensionless URL' , ( ) => {
643- expect ( response . headers ) . to . have . property ( 'location' , '/post-tests/slug1' )
642+ it ( 'is assigned an URL with the .ttl extension ' , ( ) => {
643+ expect ( response . headers ) . to . have . property ( 'location' , '/post-tests/slug1.ttl ' )
644644 } )
645645 } )
646646
0 commit comments