11/* eslint-disable no-unused-expressions */
22import supertest from 'supertest'
33import rdf from 'rdflib'
4- import ldnode from '../../index.js '
4+ import ldnode from '../../index.mjs '
55import path from 'path'
66import { fileURLToPath } from 'url'
77import fs from 'fs-extra'
@@ -13,20 +13,20 @@ const $rdf = rdf
1313
1414// FIXME: #1502
1515describe ( 'AccountManager (OIDC account creation tests)' , function ( ) {
16- const port = 3457
16+ const port = 7457
1717 const serverUri = `https://localhost:${ port } `
1818 const host = `localhost:${ port } `
19- const root = path . normalize ( path . join ( __dirname , '../../test/ resources/accounts/' ) )
20- const configPath = path . normalize ( path . join ( __dirname , '../../test/ resources/config' ) )
21- const dbPath = path . normalize ( path . join ( __dirname , '../../test/ resources/accounts/db' ) )
19+ const root = path . normalize ( path . join ( __dirname , '../resources/accounts/' ) )
20+ const configPath = path . normalize ( path . join ( __dirname , '../resources/config' ) )
21+ const dbPath = path . normalize ( path . join ( __dirname , '../resources/accounts/db' ) )
2222
2323 let ldpHttpsServer
2424
2525 const ldp = ldnode . createServer ( {
2626 root,
2727 configPath,
28- sslKey : path . normalize ( path . join ( __dirname , '../../test/ keys/key.pem' ) ) ,
29- sslCert : path . normalize ( path . join ( __dirname , '../../test/ keys/cert.pem' ) ) ,
28+ sslKey : path . normalize ( path . join ( __dirname , '../keys/key.pem' ) ) ,
29+ sslCert : path . normalize ( path . join ( __dirname , '../keys/cert.pem' ) ) ,
3030 auth : 'oidc' ,
3131 webid : true ,
3232 multiuser : true ,
@@ -233,14 +233,14 @@ describe('Single User signup page', () => {
233233 const port = 7457
234234 let ldpHttpsServer
235235 rm ( 'resources/accounts/single-user/' )
236- const rootDir = path . normalize ( path . join ( __dirname , '../../test/ resources/accounts/single-user/' ) )
237- const configPath = path . normalize ( path . join ( __dirname , '../../test/ resources/config' ) )
236+ const rootDir = path . normalize ( path . join ( __dirname , '../resources/accounts/single-user/' ) )
237+ const configPath = path . normalize ( path . join ( __dirname , '../resources/config' ) )
238238 const ldp = ldnode . createServer ( {
239239 port,
240240 root : rootDir ,
241241 configPath,
242- sslKey : path . normalize ( path . join ( __dirname , '../../test/ keys/key.pem' ) ) ,
243- sslCert : path . normalize ( path . join ( __dirname , '../../test/ keys/cert.pem' ) ) ,
242+ sslKey : path . normalize ( path . join ( __dirname , '../keys/key.pem' ) ) ,
243+ sslCert : path . normalize ( path . join ( __dirname , '../keys/cert.pem' ) ) ,
244244 webid : true ,
245245 multiuser : false ,
246246 strictOrigin : true
@@ -270,15 +270,15 @@ describe('Single User signup page', () => {
270270describe ( 'Signup page where Terms & Conditions are not being enforced' , ( ) => {
271271 const port = 3457
272272 const host = `localhost:${ port } `
273- const root = path . normalize ( path . join ( __dirname , '../../test/ resources/accounts/' ) )
274- const configPath = path . normalize ( path . join ( __dirname , '../../test/ resources/config' ) )
275- const dbPath = path . normalize ( path . join ( __dirname , '../../test/ resources/accounts/db' ) )
273+ const root = path . normalize ( path . join ( __dirname , '../resources/accounts/' ) )
274+ const configPath = path . normalize ( path . join ( __dirname , '../resources/config' ) )
275+ const dbPath = path . normalize ( path . join ( __dirname , '../resources/accounts/db' ) )
276276 const ldp = ldnode . createServer ( {
277277 port,
278278 root,
279279 configPath,
280- sslKey : path . normalize ( path . join ( __dirname , '../../test/ keys/key.pem' ) ) ,
281- sslCert : path . normalize ( path . join ( __dirname , '../../test/ keys/cert.pem' ) ) ,
280+ sslKey : path . normalize ( path . join ( __dirname , '../keys/key.pem' ) ) ,
281+ sslCert : path . normalize ( path . join ( __dirname , '../keys/cert.pem' ) ) ,
282282 auth : 'oidc' ,
283283 webid : true ,
284284 multiuser : true ,
0 commit comments