| 140 | const origin2 = 'http://example.com/' |
| 141 | |
| 142 | function createOptions (path, user, contentType = 'text/plain') { |
| 143 | const options = { |
| 144 | url: timAccountUri + path, |
| 145 | headers: { |
| 146 | accept: 'text/turtle', |
| 147 | 'content-type': contentType |
| 148 | } |
| 149 | } |
| 150 | if (user) { |
| 151 | const accessToken = userCredentials[user] |
| 152 | options.headers.Authorization = 'Bearer ' + accessToken |
| 153 | } |
| 154 | |
| 155 | return options |
| 156 | } |
| 157 | |
| 158 | describe('no ACL', function () { |
| 159 | it('Should return 500 since no ACL is a server misconfig', function (done) { |