Skip to content

Commit d905fee

Browse files
committed
Fixed things StandardJS were complaining about
1 parent 68fe5de commit d905fee

File tree

1 file changed

+23
-27
lines changed

1 file changed

+23
-27
lines changed

test/integration/acl-oidc-test.js

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -301,27 +301,24 @@ describe('ACL with WebID+OIDC over HTTP', function () {
301301
done()
302302
})
303303
})
304-
it('user1 should be able to access to test directory when origin is valid',
305-
function (done) {
306-
var options = createOptions('/origin/test-folder/', 'user1')
307-
options.headers.origin = origin1
304+
it('user1 should be able to access to test directory when origin is valid', function (done) {
305+
var options = createOptions('/origin/test-folder/', 'user1')
306+
options.headers.origin = origin1
308307

309-
request.head(options, function (error, response, body) {
310-
assert.equal(error, null)
311-
assert.equal(response.statusCode, 200)
312-
done()
313-
})
308+
request.head(options, function (error, response, body) {
309+
assert.equal(error, null)
310+
assert.equal(response.statusCode, 200)
311+
done()
314312
})
315-
it('user1 should be able to access public test directory even when origin is invalid',
316-
function (done) {
317-
var options = createOptions('/origin/test-folder/', 'user1')
318-
options.headers.origin = origin2
313+
})
314+
it('user1 should be able to access public test directory even when origin is invalid', function (done) {
315+
var options = createOptions('/origin/test-folder/', 'user1')
316+
options.headers.origin = origin2
319317

320-
request.head(options, function (error, response, body) {
321-
assert.equal(error, null)
322-
assert.equal(response.statusCode, 200)
323-
done()
324-
})
318+
request.head(options, function (error, response, body) {
319+
assert.equal(error, null)
320+
assert.equal(response.statusCode, 200)
321+
done()
325322
})
326323
})
327324
it('agent should be able to access test directory', function (done) {
@@ -344,17 +341,16 @@ describe('ACL with WebID+OIDC over HTTP', function () {
344341
done()
345342
})
346343
})
347-
it('agent should be able to access public test directory even when origin is invalid',
348-
function (done) {
349-
var options = createOptions('/origin/test-folder/')
350-
options.headers.origin = origin2
344+
it('agent should be able to access public test directory even when origin is invalid', function (done) {
345+
var options = createOptions('/origin/test-folder/')
346+
options.headers.origin = origin2
351347

352-
request.head(options, function (error, response, body) {
353-
assert.equal(error, null)
354-
assert.equal(response.statusCode, 200)
355-
done()
356-
})
348+
request.head(options, function (error, response, body) {
349+
assert.equal(error, null)
350+
assert.equal(response.statusCode, 200)
351+
done()
357352
})
353+
})
358354
it('user2 should be able to write to test directory with correct origin', function (done) {
359355
var options = createOptions('/origin/test-folder/test1.txt', 'user2', 'text/plain')
360356
options.headers.origin = origin1

0 commit comments

Comments
 (0)