File tree 1 file changed +9
-1
lines changed
src/app/auth/components/verify
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import { environment } from '@root/environments/environment';
16
16
17
17
import { HttpService } from '@shared/services/http/http.service' ;
18
18
import { ApiService } from '@shared/services/api/api.service' ;
19
- import { ActivatedRoute } from '@angular/router' ;
19
+ import { ActivatedRoute , Router } from '@angular/router' ;
20
20
import { EventService } from '@shared/services/event/event.service' ;
21
21
22
22
const defaultAuthData = require ( '@root/test/responses/auth.verify.unverifiedEmail.success.json' ) ;
@@ -48,6 +48,14 @@ describe('VerifyComponent', () => {
48
48
} ,
49
49
} ) ;
50
50
51
+ config . providers . push ( {
52
+ provide : Router ,
53
+ useValue : {
54
+ navigate : jasmine . createSpy ( 'navigate' ) ,
55
+ navigateByUrl : jasmine . createSpy ( 'navigateByUrl' ) ,
56
+ } ,
57
+ } ) ;
58
+
51
59
config . providers . push ( EventService ) ;
52
60
53
61
// Define the re-captcha element as a custom element so it's only mocked out
You can’t perform that action at this time.
0 commit comments