Skip to content

Commit 4fd4f90

Browse files
committed
Revert "Trying to make tests less dependent on order"
This reverts commit 06c5b19.
1 parent de3b0e0 commit 4fd4f90

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

test/integration/acl-oidc-test.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,11 @@ describe('ACL with WebID+OIDC over HTTP', function () {
251251
})
252252

253253
describe('Origin', function () {
254-
let _error, _response
255-
256-
before(function (done) {
254+
before(function () {
257255
rm('/accounts-acl/tim.localhost/origin/test-folder/.acl')
256+
})
258257

258+
it('should PUT new ACL file', function (done) {
259259
var options = createOptions('/origin/test-folder/.acl', 'user1', 'text/turtle')
260260
options.body = '<#Owner> a <http://www.w3.org/ns/auth/acl#Authorization>;\n' +
261261
' <http://www.w3.org/ns/auth/acl#accessTo> <https://localhost:3456/origin/test-folder/.acl>;\n' +
@@ -274,15 +274,13 @@ describe('ACL with WebID+OIDC over HTTP', function () {
274274
' <http://www.w3.org/ns/auth/acl#origin> <' + origin1 + '>;\n' +
275275
' <http://www.w3.org/ns/auth/acl#mode> <http://www.w3.org/ns/auth/acl#Write> .\n'
276276
request.put(options, function (error, response, body) {
277-
_error = error
278-
_response = response
277+
assert.equal(error, null)
278+
assert.equal(response.statusCode, 201)
279279
done()
280+
// TODO triple header
281+
// TODO user header
280282
})
281283
})
282-
283-
it('should be no error', () => assert.equal(_error, null))
284-
it('should return 200', () => assert.equal(_response.statusCode, 201))
285-
286284
it('user1 should be able to access test directory', function (done) {
287285
var options = createOptions('/origin/test-folder/', 'user1')
288286
options.headers.origin = origin1

0 commit comments

Comments
 (0)