File tree Expand file tree Collapse file tree
projects/angular-odata/src/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import { QueryOption } from './types';
3131import { provideZonelessChangeDetection } from '@angular/core' ;
3232
3333describe ( 'ODataClient' , ( ) => {
34- beforeEach ( ( ) => {
34+ beforeEach ( async ( ) => {
3535 TestBed . configureTestingModule ( {
3636 providers : [
3737 provideZonelessChangeDetection ( ) ,
@@ -40,6 +40,7 @@ describe('ODataClient', () => {
4040 provideHttpClientTesting ( ) ,
4141 ] ,
4242 } ) ;
43+ await TestBed . inject ( ODataClient ) . initialize ( ) ;
4344 } ) ;
4445
4546 afterEach ( ( ) => {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const SERVICE_ROOT = 'https://services.odata.org/v4/TripPinServiceRW/';
2020const ENTITY_SET = 'People' ;
2121
2222describe ( 'ODataResource' , ( ) => {
23- beforeEach ( ( ) => {
23+ beforeEach ( async ( ) => {
2424 TestBed . configureTestingModule ( {
2525 providers : [
2626 provideZonelessChangeDetection ( ) ,
@@ -33,6 +33,7 @@ describe('ODataResource', () => {
3333 provideHttpClientTesting ( ) ,
3434 ] ,
3535 } ) ;
36+ await TestBed . inject ( ODataClient ) . initialize ( ) ;
3637 } ) ;
3738
3839 it ( 'should create batch resource' , ( ) => {
You can’t perform that action at this time.
0 commit comments