@@ -62,13 +62,16 @@ export default (ctx) => describe('Integration Tests: it tests', function () {
6262 assert . strictEqual ( resp . status , 200 , `Expected 200 OK, got ${ resp . status } - user: ${ superUser . email } ` ) ;
6363
6464 const body = await resp . json ( ) ;
65+ // check initial config is clean
6566 assert . strictEqual ( body . total , 2 , `Expected 2, got ${ body . total } ` ) ;
6667 assert . strictEqual ( body . data [ 0 ] . path , 'CONFIG' , `Expected CONFIG, got ${ body . data [ 0 ] . path } ` ) ;
6768 assert . strictEqual ( body . data [ 0 ] . groups , superUser . email , `Expected user email, got ${ body . data [ 0 ] . groups } ` ) ;
6869 assert . strictEqual ( body . data [ 0 ] . actions , 'write' , `Expected write, got ${ body . data [ 0 ] . actions } ` ) ;
6970 assert . strictEqual ( body . data [ 1 ] . path , '/+**' , `Expected /+**, got ${ body . data [ 1 ] . path } ` ) ;
7071 assert . strictEqual ( body . data [ 1 ] . groups , superUser . email , `Expected user email, got ${ body . data [ 1 ] . groups } ` ) ;
7172 assert . strictEqual ( body . data [ 1 ] . actions , 'write' , `Expected write, got ${ body . data [ 1 ] . actions } ` ) ;
73+ assert . strictEqual ( body [ ':type' ] , 'sheet' , `Expected sheet, got ${ body [ ':type' ] } ` ) ;
74+ assert . strictEqual ( body [ ':sheetname' ] , 'permissions' , `Expected permissions, got ${ body [ ':sheetname' ] } ` ) ;
7275 } ) ;
7376
7477 it ( '[anonymous] cannot delete root folder' , async ( ) => {
@@ -403,9 +406,10 @@ export default (ctx) => describe('Integration Tests: it tests', function () {
403406 assert . strictEqual ( body . data [ 1 ] . path , '/+**' , `Expected /+**, got ${ body . data [ 1 ] . path } ` ) ;
404407 assert . strictEqual ( body . data [ 1 ] . groups , superUser . email , `Expected user email, got ${ body . data [ 1 ] . groups } ` ) ;
405408 assert . strictEqual ( body . data [ 1 ] . actions , 'write' , `Expected write, got ${ body . data [ 1 ] . actions } ` ) ;
409+ assert . strictEqual ( body [ ':type' ] , 'sheet' , `Expected sheet, got ${ body [ ':type' ] } ` ) ;
410+ assert . strictEqual ( body [ ':sheetname' ] , 'permissions' , `Expected permissions, got ${ body [ ':sheetname' ] } ` ) ;
406411 } ) ;
407412
408- // TODO: currently the auth session is stored in memory, so the limited user can still read page2
409413 it ( '[limited user] cannot read page2 anymore' , async ( ) => {
410414 const {
411415 serverUrl, org, repo, limitedUser,
0 commit comments