File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -7,28 +7,6 @@ chai.use(require('chai-as-promised'))
77const options = { fetch : ( url , callback ) => { } }
88
99describe ( 'ACLChecker unit test' , ( ) => {
10- // let acl
11-
12- // beforeEach(() => {
13- // acl = new ACLChecker('http://ex.com/.acl', options)
14- // })
15-
16- // describe('checkAccess', () => {
17- // it('should callback with null on grant success', () => {
18- // let acls = { checkAccess: () => Promise.resolve(true) }
19- // return expect(acl.checkAccess(acls)).to.eventually.be.true
20- // })
21- // it('should callback with error on grant failure', () => {
22- // let acls = { checkAccess: () => Promise.resolve(false) }
23- // return expect(acl.checkAccess(acls))
24- // .to.be.rejectedWith('ACL file found but no matching policy found')
25- // })
26- // it('should callback with error on grant error', () => {
27- // let acls = { checkAccess: () => Promise.reject(new Error('my error')) }
28- // return expect(acl.checkAccess(acls)).to.be.rejectedWith('my error')
29- // })
30- // })
31-
3210 describe ( 'getPossibleACLs' , ( ) => {
3311 it ( 'returns all possible ACLs of the root' , ( ) => {
3412 const aclChecker = new ACLChecker ( 'http://ex.org/' , options )
You can’t perform that action at this time.
0 commit comments