Skip to content

Commit 293c519

Browse files
fix lint and unit test
1 parent 8cb33bd commit 293c519

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/acl-check.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Access control logic
22

33
const $rdf = require('rdflib')
4-
const Fetcher = $rdf.Fetcher
54
const ACL = $rdf.Namespace('http://www.w3.org/ns/auth/acl#')
65
const FOAF = $rdf.Namespace('http://xmlns.com/foaf/0.1/')
76
const VCARD = $rdf.Namespace('http://www.w3.org/2006/vcard/ns#')

test/unit/get-trusted-modes-for-origin-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ test('aclCheck getTrustedModesForOrigin() getting trusted modes from publisherSt
3636
`
3737
$rdf.parse(publisherText, publisherStore, publisher.uri, 'text/turtle')
3838

39-
aclLogic.getTrustedModesForOrigin(publisherStore, aclDoc, doc, origin).then(result => {
39+
aclLogic.getTrustedModesForOrigin(publisherStore, aclDoc, doc, origin, Promise.resolve.bind(Promise)).then(result => {
4040
t.deepEqual(result, [ACL('Read'), ACL('Write')], 'Should get a list of modes')
4141
t.end()
4242
})

0 commit comments

Comments
 (0)