@@ -200,7 +200,7 @@ describe('A RegistrationManager', (): void => {
200
200
expect ( podManager . createPod ) . toHaveBeenCalledTimes ( 1 ) ;
201
201
expect ( podManager . createPod ) . toHaveBeenLastCalledWith ( { path : `${ baseUrl } ${ podName } /` } , podSettings , false ) ;
202
202
expect ( accountStore . create ) . toHaveBeenCalledTimes ( 1 ) ;
203
- expect ( accountStore . create ) . toHaveBeenLastCalledWith ( email , webId , password , { useIdp : false } ) ;
203
+ expect ( accountStore . create ) . toHaveBeenLastCalledWith ( email , webId , password , { useIdp : false , podBaseUrl } ) ;
204
204
expect ( accountStore . verify ) . toHaveBeenCalledTimes ( 1 ) ;
205
205
206
206
expect ( accountStore . deleteAccount ) . toHaveBeenCalledTimes ( 0 ) ;
@@ -222,7 +222,7 @@ describe('A RegistrationManager', (): void => {
222
222
expect ( ownershipValidator . handleSafe ) . toHaveBeenCalledTimes ( 1 ) ;
223
223
expect ( ownershipValidator . handleSafe ) . toHaveBeenLastCalledWith ( { webId } ) ;
224
224
expect ( accountStore . create ) . toHaveBeenCalledTimes ( 1 ) ;
225
- expect ( accountStore . create ) . toHaveBeenLastCalledWith ( email , webId , password , { useIdp : true } ) ;
225
+ expect ( accountStore . create ) . toHaveBeenLastCalledWith ( email , webId , password , { useIdp : true , podBaseUrl } ) ;
226
226
expect ( identifierGenerator . generate ) . toHaveBeenCalledTimes ( 1 ) ;
227
227
expect ( identifierGenerator . generate ) . toHaveBeenLastCalledWith ( podName ) ;
228
228
expect ( podManager . createPod ) . toHaveBeenCalledTimes ( 1 ) ;
@@ -242,7 +242,7 @@ describe('A RegistrationManager', (): void => {
242
242
expect ( ownershipValidator . handleSafe ) . toHaveBeenCalledTimes ( 1 ) ;
243
243
expect ( ownershipValidator . handleSafe ) . toHaveBeenLastCalledWith ( { webId } ) ;
244
244
expect ( accountStore . create ) . toHaveBeenCalledTimes ( 1 ) ;
245
- expect ( accountStore . create ) . toHaveBeenLastCalledWith ( email , webId , password , { useIdp : true } ) ;
245
+ expect ( accountStore . create ) . toHaveBeenLastCalledWith ( email , webId , password , { useIdp : true , podBaseUrl } ) ;
246
246
expect ( identifierGenerator . generate ) . toHaveBeenCalledTimes ( 1 ) ;
247
247
expect ( identifierGenerator . generate ) . toHaveBeenLastCalledWith ( podName ) ;
248
248
expect ( podManager . createPod ) . toHaveBeenCalledTimes ( 1 ) ;
@@ -272,7 +272,10 @@ describe('A RegistrationManager', (): void => {
272
272
expect ( identifierGenerator . generate ) . toHaveBeenCalledTimes ( 1 ) ;
273
273
expect ( identifierGenerator . generate ) . toHaveBeenLastCalledWith ( podName ) ;
274
274
expect ( accountStore . create ) . toHaveBeenCalledTimes ( 1 ) ;
275
- expect ( accountStore . create ) . toHaveBeenLastCalledWith ( email , generatedWebID , password , { useIdp : true } ) ;
275
+ expect ( accountStore . create ) . toHaveBeenLastCalledWith ( email ,
276
+ generatedWebID ,
277
+ password ,
278
+ { useIdp : true , podBaseUrl } ) ;
276
279
expect ( accountStore . verify ) . toHaveBeenCalledTimes ( 1 ) ;
277
280
expect ( accountStore . verify ) . toHaveBeenLastCalledWith ( email ) ;
278
281
expect ( podManager . createPod ) . toHaveBeenCalledTimes ( 1 ) ;
@@ -300,7 +303,10 @@ describe('A RegistrationManager', (): void => {
300
303
expect ( podManager . createPod ) . toHaveBeenCalledTimes ( 1 ) ;
301
304
expect ( podManager . createPod ) . toHaveBeenLastCalledWith ( { path : baseUrl } , podSettings , true ) ;
302
305
expect ( accountStore . create ) . toHaveBeenCalledTimes ( 1 ) ;
303
- expect ( accountStore . create ) . toHaveBeenLastCalledWith ( email , webId , password , { useIdp : false } ) ;
306
+ expect ( accountStore . create ) . toHaveBeenLastCalledWith ( email ,
307
+ webId ,
308
+ password ,
309
+ { useIdp : false , podBaseUrl : baseUrl } ) ;
304
310
expect ( accountStore . verify ) . toHaveBeenCalledTimes ( 1 ) ;
305
311
306
312
expect ( identifierGenerator . generate ) . toHaveBeenCalledTimes ( 0 ) ;
0 commit comments