@@ -80,21 +80,21 @@ describe('AccountManager (OIDC account creation tests)', function () {
8080 } )
8181
8282 it ( 'should not create WebID if no username is given' , ( done ) => {
83- let subdomain = supertest ( 'https://nicola. ' + host )
83+ let subdomain = supertest ( 'https://' + host )
8484 subdomain . post ( '/api/accounts/new' )
8585 . send ( 'username=&password=12345' )
8686 . expect ( 400 , done )
8787 } )
8888
8989 it ( 'should not create WebID if no password is given' , ( done ) => {
90- let subdomain = supertest ( 'https://nicola. ' + host )
90+ let subdomain = supertest ( 'https://' + host )
9191 subdomain . post ( '/api/accounts/new' )
9292 . send ( 'username=nicola&password=' )
9393 . expect ( 400 , done )
9494 } )
9595
9696 it ( 'should not create a WebID if it already exists' , function ( done ) {
97- var subdomain = supertest ( 'https://nicola. ' + host )
97+ var subdomain = supertest ( 'https://' + host )
9898 subdomain . post ( '/api/accounts/new' )
9999 . send ( 'username=nicola&password=12345&acceptToc=true' )
100100 . expect ( 302 )
@@ -112,14 +112,14 @@ describe('AccountManager (OIDC account creation tests)', function () {
112112 } )
113113
114114 it ( 'should not create WebID if T&C is not accepted' , ( done ) => {
115- let subdomain = supertest ( 'https://nicola. ' + host )
115+ let subdomain = supertest ( 'https://' + host )
116116 subdomain . post ( '/api/accounts/new' )
117117 . send ( 'username=nicola&password=12345&acceptToc=' )
118118 . expect ( 400 , done )
119119 } )
120120
121121 it ( 'should create the default folders' , function ( done ) {
122- var subdomain = supertest ( 'https://nicola. ' + host )
122+ var subdomain = supertest ( 'https://' + host )
123123 subdomain . post ( '/api/accounts/new' )
124124 . send ( 'username=nicola&password=12345&acceptToc=true' )
125125 . expect ( 302 )
@@ -150,14 +150,15 @@ describe('AccountManager (OIDC account creation tests)', function () {
150150 } ) . timeout ( 20000 )
151151
152152 it ( 'should link WebID to the root account' , function ( done ) {
153- var subdomain = supertest ( 'https://nicola. ' + host )
154- subdomain . post ( '/api/accounts/new' )
153+ const domain = supertest ( 'https://' + host )
154+ domain . post ( '/api/accounts/new' )
155155 . send ( 'username=nicola&password=12345&acceptToc=true' )
156156 . expect ( 302 )
157157 . end ( function ( err ) {
158158 if ( err ) {
159159 return done ( err )
160160 }
161+ const subdomain = supertest ( 'https://nicola.' + host )
161162 subdomain . get ( '/.meta' )
162163 . expect ( 200 )
163164 . end ( function ( err , data ) {
@@ -185,7 +186,7 @@ describe('AccountManager (OIDC account creation tests)', function () {
185186
186187 describe ( 'after setting up account' , ( ) => {
187188 beforeEach ( done => {
188- var subdomain = supertest ( 'https://nicola. ' + host )
189+ var subdomain = supertest ( 'https://' + host )
189190 subdomain . post ( '/api/accounts/new' )
190191 . send ( 'username=nicola&password=12345&acceptToc=true' )
191192 . end ( done )
@@ -294,7 +295,7 @@ describe('Signup page where Terms & Conditions are not being enforced', () => {
294295 } )
295296
296297 it ( 'should not enforce T&C upon creating account' , function ( done ) {
297- var subdomain = supertest ( 'https://nicola. ' + host )
298+ var subdomain = supertest ( 'https://' + host )
298299 subdomain . post ( '/api/accounts/new' )
299300 . send ( 'username=nicola&password=12345' )
300301 . expect ( 302 , done )
0 commit comments