Skip to content

Commit 2a6ea44

Browse files
committed
header-test commented out code works node v15
1 parent 9781e02 commit 2a6ea44

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@
152152
"mocha-account-template": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 mocha --recursive test/integration/account-template-test.js",
153153
"mocha-acl-oidc": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 mocha --recursive test/integration/acl-oidc-test.js",
154154
"mocha-authentication-oidc": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 mocha --recursive test/integration/authentication-oidc-test.js",
155+
"mocha-header": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 mocha --recursive test/integration/header-test.js",
155156
"prepublishOnly": "npm test",
156157
"postpublish": "git push --follow-tags",
157158
"test": "npm run standard && npm run validate && npm run nyc",

test/integration/header-test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ describe('Header handler', () => {
6060
})
6161

6262
// FIXME: https://github.com/solid/node-solid-server/issues/1502
63-
// describeHeaderTest('read/write/append/control for the user, nothing for the public', {
64-
// resource: '/user-rwac-public-0',
65-
// headers: {
66-
// 'WAC-Allow': 'user="read write append control",public=""',
67-
// 'Access-Control-Expose-Headers': /(^|,\s*)WAC-Allow(,|$)/
68-
// }
69-
// })
63+
describeHeaderTest('read/write/append/control for the user, nothing for the public', {
64+
resource: '/user-rwac-public-0',
65+
headers: {
66+
'WAC-Allow': 'user="read write append control",public=""',
67+
'Access-Control-Expose-Headers': /(^|,\s*)WAC-Allow(,|$)/
68+
}
69+
})
7070
})
7171

7272
function describeHeaderTest (label, { resource, headers }) {

0 commit comments

Comments
 (0)