File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 1
- 16.14 .0
1
+ v18.19 .0
Original file line number Diff line number Diff line change @@ -983,13 +983,23 @@ describe('HTTP APIs', function () {
983
983
it ( 'should create container' , function ( done ) {
984
984
server . post ( '/post-tests/' )
985
985
. set ( 'content-type' , 'text/turtle' )
986
- . set ( 'slug' , 'loans.acl' )
986
+ . set ( 'slug' , 'loans.acl.meta ' )
987
987
. set ( 'link' , '<http://www.w3.org/ns/ldp#BasicContainer>; rel="type"' )
988
988
. send ( postRequest2Body )
989
989
. expect ( 'location' , / \/ p o s t - t e s t s \/ l o a n s \/ / )
990
- . expect ( 201 , done )
990
+ . expect ( 201 )
991
+ . end ( ( err , res ) => {
992
+ if ( err ) return done ( err )
993
+ try {
994
+ postLocation = res . headers . location
995
+ assert ( ! postLocation . endsWith ( '.acl/' ) && ! postLocation . endsWith ( '.meta/' ) , 'Container name should not end with .acl or .meta' )
996
+ } catch ( err ) {
997
+ return done ( err )
998
+ }
999
+ done ( )
1000
+ } )
991
1001
} )
992
- it ( 'should be able to access newly container' , function ( done ) {
1002
+ it ( 'should be able to access newly created container' , function ( done ) {
993
1003
console . log ( postLocation )
994
1004
server . get ( postLocation )
995
1005
// .expect('content-type', /text\/turtle/)
You can’t perform that action at this time.
0 commit comments