File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing';
23
23
import { EMPTY , of } from 'rxjs' ;
24
24
import { AlfrescoApiService } from '../../services' ;
25
25
import { AlfrescoApiServiceMock } from '../../mock' ;
26
+ import { AdfHttpClient } from '@alfresco/adf-core/api' ;
26
27
27
28
declare let jasmine : any ;
28
29
@@ -34,7 +35,9 @@ describe('NodeCommentsService', () => {
34
35
imports : [ HttpClientTestingModule ] ,
35
36
providers : [
36
37
{ provide : AlfrescoApiService , useClass : AlfrescoApiServiceMock } ,
37
- { provide : RedirectAuthService , useValue : { onLogin : EMPTY , onTokenReceived : of ( ) } }
38
+ { provide : RedirectAuthService , useValue : { onLogin : EMPTY , onTokenReceived : of ( ) } } ,
39
+ // TODO: remove this as soon as unit test not using jasmine.Ajax
40
+ { provide : AdfHttpClient , useValue : null }
38
41
]
39
42
} ) ;
40
43
service = TestBed . inject ( NodeCommentsService ) ;
You can’t perform that action at this time.
0 commit comments