@@ -251,11 +251,11 @@ describe('ACL with WebID+OIDC over HTTP', function () {
251251 } )
252252
253253 describe ( 'Origin' , function ( ) {
254- before ( function ( ) {
254+ let _error , _response
255+
256+ before ( function ( done ) {
255257 rm ( '/accounts-acl/tim.localhost/origin/test-folder/.acl' )
256- } )
257258
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,13 +274,15 @@ 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- assert . equal ( error , null )
278- assert . equal ( response . statusCode , 201 )
277+ _error = error
278+ _response = response
279279 done ( )
280- // TODO triple header
281- // TODO user header
282280 } )
283281 } )
282+
283+ it ( 'should be no error' , ( ) => assert . equal ( _error , null ) )
284+ it ( 'should return 200' , ( ) => assert . equal ( _response . statusCode , 201 ) )
285+
284286 it ( 'user1 should be able to access test directory' , function ( done ) {
285287 var options = createOptions ( '/origin/test-folder/' , 'user1' )
286288 options . headers . origin = origin1
0 commit comments