Skip to content

Commit 1670d96

Browse files
author
Diego van Haaster
committed
Fix: Update parser spec to use async initialize with request handler
1 parent 73b82e3 commit 1670d96

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

projects/angular-odata/src/lib/schema/parsers/parser.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import { Parser } from '../../types';
1717
import { provideZonelessChangeDetection } from '@angular/core';
1818
import { provideHttpClient } from '@angular/common/http';
1919
import { provideHttpClientTesting } from '@angular/common/http/testing';
20+
import { ODataRequest } from '../../resources';
21+
import { of } from 'rxjs';
2022

2123
describe('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
/*

0 commit comments

Comments
 (0)