@@ -231,7 +231,7 @@ describe('ACL with WebID+TLS', function () {
231231 done ( )
232232 } )
233233 } )
234- it ( ' should create test file\ 's acl file' , function ( done ) {
234+ it ( " should create test file's acl file" , function ( done ) {
235235 var options = createOptions ( '/acl-tls/write-acl/test-file.acl' , 'user1' )
236236 options . headers = {
237237 'content-type' : 'text/turtle'
@@ -243,7 +243,7 @@ describe('ACL with WebID+TLS', function () {
243243 done ( )
244244 } )
245245 } )
246- it ( ' should not access test file\ 's acl file' , function ( done ) {
246+ it ( " should not access test file's acl file" , function ( done ) {
247247 var options = createOptions ( '/acl-tls/write-acl/test-file.acl' , 'user1' )
248248 options . headers = {
249249 accept : 'text/turtle'
@@ -267,10 +267,12 @@ describe('ACL with WebID+TLS', function () {
267267 } )
268268
269269 describe ( 'Origin' , function ( ) {
270- before ( function ( done ) {
270+ before ( function ( ) {
271271 rm ( 'acl-tls/origin/test-folder/.acl' )
272+ } )
272273
273- const options = createOptions ( '/acl-tls/origin/test-folder/.acl' , 'user1' , 'text/turtle' )
274+ it ( 'should PUT new ACL file' , function ( done ) {
275+ var options = createOptions ( '/acl-tls/origin/test-folder/.acl' , 'user1' , 'text/turtle' )
274276 options . headers = {
275277 'content-type' : 'text/turtle'
276278 }
@@ -292,7 +294,6 @@ describe('ACL with WebID+TLS', function () {
292294 // TODO user header
293295 } )
294296 } )
295-
296297 it ( 'user1 should be able to access test directory' , function ( done ) {
297298 var options = createOptions ( '/acl-tls/origin/test-folder/' , 'user1' )
298299 options . headers . origin = origin1
@@ -364,9 +365,11 @@ describe('ACL with WebID+TLS', function () {
364365 } )
365366
366367 describe ( 'Mixed statement Origin' , function ( ) {
367- before ( function ( done ) {
368+ before ( function ( ) {
368369 rm ( 'acl-tls/origin/test-folder/.acl' )
370+ } )
369371
372+ it ( 'should PUT new ACL file' , function ( done ) {
370373 var options = createOptions ( '/acl-tls/origin/test-folder/.acl' , 'user1' , 'text/turtle' )
371374 options . headers = {
372375 'content-type' : 'text/turtle'
@@ -392,7 +395,6 @@ describe('ACL with WebID+TLS', function () {
392395 // TODO user header
393396 } )
394397 } )
395-
396398 it ( 'user1 should be able to access test directory' , function ( done ) {
397399 var options = createOptions ( '/acl-tls/origin/test-folder/' , 'user1' )
398400 options . headers . origin = origin1
@@ -580,7 +582,7 @@ describe('ACL with WebID+TLS', function () {
580582
581583 describe ( 'Append-only' , function ( ) {
582584 // var body = fs.readFileSync(__dirname + '/resources/acl-tls/append-acl/abc.ttl.acl')
583- it ( ' user1 should be able to access test file\ 's ACL file' , function ( done ) {
585+ it ( " user1 should be able to access test file's ACL file" , function ( done ) {
584586 var options = createOptions ( '/acl-tls/append-acl/abc.ttl.acl' , 'user1' )
585587 request . head ( options , function ( error , response ) {
586588 assert . equal ( error , null )
@@ -621,7 +623,7 @@ describe('ACL with WebID+TLS', function () {
621623 done ( )
622624 } )
623625 } )
624- it ( ' user2 should not be able to access test file\ 's ACL file' , function ( done ) {
626+ it ( " user2 should not be able to access test file's ACL file" , function ( done ) {
625627 var options = createOptions ( '/acl-tls/append-acl/abc.ttl.acl' , 'user2' )
626628 request . head ( options , function ( error , response , body ) {
627629 assert . equal ( error , null )
@@ -683,7 +685,7 @@ describe('ACL with WebID+TLS', function () {
683685 ' <http://www.w3.org/ns/auth/acl#accessTo> <./abc2.ttl>;\n' +
684686 ' <http://www.w3.org/ns/auth/acl#agent> <' + user2 + '>;\n' +
685687 ' <http://www.w3.org/ns/auth/acl#mode> <http://www.w3.org/ns/auth/acl#Read>, <http://www.w3.org/ns/auth/acl#Write>.\n'
686- it ( ' user1 should be able to modify test file\ 's ACL file' , function ( done ) {
688+ it ( " user1 should be able to modify test file's ACL file" , function ( done ) {
687689 var options = createOptions ( '/acl-tls/append-acl/abc2.ttl.acl' , 'user1' )
688690 options . headers = {
689691 'content-type' : 'text/turtle'
@@ -695,7 +697,7 @@ describe('ACL with WebID+TLS', function () {
695697 done ( )
696698 } )
697699 } )
698- it ( ' user1 should be able to access test file\ 's ACL file' , function ( done ) {
700+ it ( " user1 should be able to access test file's ACL file" , function ( done ) {
699701 var options = createOptions ( '/acl-tls/append-acl/abc2.ttl.acl' , 'user1' )
700702 request . head ( options , function ( error , response , body ) {
701703 assert . equal ( error , null )
@@ -731,7 +733,7 @@ describe('ACL with WebID+TLS', function () {
731733 done ( )
732734 } )
733735 } )
734- it ( ' user2 should not be able to access test file\ 's ACL file' , function ( done ) {
736+ it ( " user2 should not be able to access test file's ACL file" , function ( done ) {
735737 var options = createOptions ( '/acl-tls/append-acl/abc2.ttl.acl' , 'user2' )
736738 request . head ( options , function ( error , response , body ) {
737739 assert . equal ( error , null )
@@ -789,7 +791,7 @@ describe('ACL with WebID+TLS', function () {
789791 ' <http://www.w3.org/ns/auth/acl#default> <./>;\n' +
790792 ' <http://www.w3.org/ns/auth/acl#agentClass> <http://xmlns.com/foaf/0.1/Agent>;\n' +
791793 ' <http://www.w3.org/ns/auth/acl#mode> <http://www.w3.org/ns/auth/acl#Read> .\n'
792- it ( ' user1 should be able to modify test directory\ 's ACL file' , function ( done ) {
794+ it ( " user1 should be able to modify test directory's ACL file" , function ( done ) {
793795 var options = createOptions ( '/acl-tls/write-acl/default-for-new/.acl' , 'user1' )
794796 options . headers = {
795797 'content-type' : 'text/turtle'
@@ -801,7 +803,7 @@ describe('ACL with WebID+TLS', function () {
801803 done ( )
802804 } )
803805 } )
804- it ( ' user1 should be able to access test direcotory\ 's ACL file' , function ( done ) {
806+ it ( " user1 should be able to access test direcotory's ACL file" , function ( done ) {
805807 var options = createOptions ( '/acl-tls/write-acl/default-for-new/.acl' , 'user1' )
806808 request . head ( options , function ( error , response , body ) {
807809 assert . equal ( error , null )
@@ -829,7 +831,7 @@ describe('ACL with WebID+TLS', function () {
829831 done ( )
830832 } )
831833 } )
832- it ( ' user2 should not be able to access test direcotory\ 's ACL file' , function ( done ) {
834+ it ( " user2 should not be able to access test direcotory's ACL file" , function ( done ) {
833835 var options = createOptions ( '/acl-tls/write-acl/default-for-new/.acl' , 'user2' )
834836 request . head ( options , function ( error , response , body ) {
835837 assert . equal ( error , null )
0 commit comments