File tree Expand file tree Collapse file tree
projects/angular-odata/src/lib/schema/parsers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ import { Parser } from '../../types';
1717import { provideZonelessChangeDetection } from '@angular/core' ;
1818import { provideHttpClient } from '@angular/common/http' ;
1919import { provideHttpClientTesting } from '@angular/common/http/testing' ;
20+ import { ODataRequest } from '../../resources' ;
21+ import { of } from 'rxjs' ;
2022
2123describe ( 'ODataClient' , ( ) => {
2224 let client : ODataClient ;
@@ -29,7 +31,7 @@ describe('ODataClient', () => {
2931 Black ,
3032 }
3133
32- beforeEach ( ( ) => {
34+ beforeEach ( async ( ) => {
3335 TestBed . configureTestingModule ( {
3436 providers : [
3537 provideZonelessChangeDetection ( ) ,
@@ -132,7 +134,7 @@ describe('ODataClient', () => {
132134 } ,
133135 ] ,
134136 } ) ;
135- api . configure ( ) ;
137+ await api . initialize ( ( request : ODataRequest < any > ) => of ( null ) ) ;
136138 } ) ;
137139
138140 /*
You can’t perform that action at this time.
0 commit comments