@@ -206,12 +206,12 @@ describe('Single User signup page', () => {
206206 const serverUri = 'https://localhost:7457'
207207 const port = 7457
208208 var ldpHttpsServer
209- const rootDir = path . join ( __dirname , '/resources/accounts/single-user/' )
209+ const rootDir = path . join ( __dirname , '.. /resources/accounts/single-user/' )
210210 const ldp = ldnode . createServer ( {
211211 port,
212212 root : rootDir ,
213- sslKey : path . join ( __dirname , '/keys/key.pem' ) ,
214- sslCert : path . join ( __dirname , '/keys/cert.pem' ) ,
213+ sslKey : path . join ( __dirname , '.. /keys/key.pem' ) ,
214+ sslCert : path . join ( __dirname , '.. /keys/cert.pem' ) ,
215215 webid : true ,
216216 idp : false ,
217217 strictOrigin : true
@@ -224,7 +224,7 @@ describe('Single User signup page', () => {
224224
225225 after ( function ( ) {
226226 if ( ldpHttpsServer ) ldpHttpsServer . close ( )
227- fs . removeSync ( path . join ( rootDir ) )
227+ fs . removeSync ( rootDir )
228228 } )
229229
230230 it ( 'should return a 401 unauthorized without accept text/html' , done => {
@@ -233,19 +233,4 @@ describe('Single User signup page', () => {
233233 . expect ( 401 )
234234 . end ( done )
235235 } )
236-
237- it ( 'should redirect to signup with accept text/html' , done => {
238- server . get ( '/' )
239- . set ( 'accept' , 'text/html' )
240- . expect ( 302 )
241- . expect ( 'location' , '/signup.html' )
242- . end ( done )
243- } )
244-
245- it ( 'it should serve the signup page' , done => {
246- server . get ( '/signup.html' )
247- . expect ( 200 )
248- . expect ( / < t i t l e > A d m i n S i g n u p < \/ t i t l e > / )
249- . end ( done )
250- } )
251236} )
0 commit comments