@@ -251,11 +251,11 @@ describe('ACL with WebID+OIDC over HTTP', function () {
251251 } )
252252
253253 describe ( 'Origin' , function ( ) {
254- let _error , _response
255-
256- before ( function ( done ) {
254+ before ( function ( ) {
257255 rm ( '/accounts-acl/tim.localhost/origin/test-folder/.acl' )
256+ } )
258257
258+ it ( 'should PUT new ACL file' , function ( done ) {
259259 var options = createOptions ( '/origin/test-folder/.acl' , 'user1' , 'text/turtle' )
260260 options . body = '<#Owner> a <http://www.w3.org/ns/auth/acl#Authorization>;\n' +
261261 ' <http://www.w3.org/ns/auth/acl#accessTo> <https://localhost:3456/origin/test-folder/.acl>;\n' +
@@ -274,15 +274,13 @@ describe('ACL with WebID+OIDC over HTTP', function () {
274274 ' <http://www.w3.org/ns/auth/acl#origin> <' + origin1 + '>;\n' +
275275 ' <http://www.w3.org/ns/auth/acl#mode> <http://www.w3.org/ns/auth/acl#Write> .\n'
276276 request . put ( options , function ( error , response , body ) {
277- _error = error
278- _response = response
277+ assert . equal ( error , null )
278+ assert . equal ( response . statusCode , 201 )
279279 done ( )
280+ // TODO triple header
281+ // TODO user header
280282 } )
281283 } )
282-
283- it ( 'should be no error' , ( ) => assert . equal ( _error , null ) )
284- it ( 'should return 200' , ( ) => assert . equal ( _response . statusCode , 201 ) )
285-
286284 it ( 'user1 should be able to access test directory' , function ( done ) {
287285 var options = createOptions ( '/origin/test-folder/' , 'user1' )
288286 options . headers . origin = origin1
0 commit comments