Skip to content

Commit 8b7705f

Browse files
author
nicola
committed
adding further tests for findACLinPath
1 parent 3b83c48 commit 8b7705f

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

‎test/acl.js‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,6 +1249,24 @@ describe('ACL Class', function () {
12491249
});
12501250
});
12511251
});
1252+
1253+
it('should report that ACL has not been found if aclGraph is empty', function(done) {
1254+
var acl = new ACL({
1255+
ldp: ldp,
1256+
origin: 'https://example.com',
1257+
session: {
1258+
userId: user1,
1259+
identified: true
1260+
},
1261+
uri: address
1262+
});
1263+
1264+
acl.findACLinPath('Read', __dirname + '/resources/.acl', address, $rdf.graph(), 'accessTo', user1, function (err, result) {
1265+
assert.notOk(err);
1266+
assert.equal(result, false);
1267+
done();
1268+
});
1269+
});
12521270
});
12531271

12541272
describe('findACL', function () {

0 commit comments

Comments
 (0)