Skip to content

Commit f577338

Browse files
megothrubensworks
authored andcommitted
Writing away checkAccess-method
1 parent 5210e23 commit f577338

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

test/unit/acl-checker-test.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,6 @@ chai.use(require('chai-as-promised'))
77
const options = { fetch: (url, callback) => {} }
88

99
describe('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)

0 commit comments

Comments
 (0)