Skip to content

Commit

Permalink
fixup! refactor: use a get request instead of an options call for the…
Browse files Browse the repository at this point in the history
… oci punchout configuration
  • Loading branch information
SGrueber committed Sep 24, 2024
1 parent e00b5fe commit 08956d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/app/core/services/api/api.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ describe('Api Service', () => {
});

it('should call the httpClient.options method when apiService.options method is called.', done => {
// eslint-disable-next-line etc/no-deprecated
apiService.options('data').subscribe({
next: data => {
expect(data).toBeTruthy();
Expand All @@ -79,6 +80,7 @@ describe('Api Service', () => {
it('should create Error Action if httpClient.options throws Error.', () => {
const statusText = 'ERROR';

// eslint-disable-next-line etc/no-deprecated
apiService.options('data').subscribe({ next: fail, error: fail });
const req = httpTestingController.expectOne(`${REST_URL}/data`);

Expand Down
3 changes: 2 additions & 1 deletion src/app/core/services/api/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,9 @@ export class ApiService {
);
}

// not-dead-code
/**
* http options request
* @deprecated http options request - will be removed with the next major release (6.0)
*/
options<T>(path: string, options?: AvailableOptions): Observable<T> {
return this.execute(
Expand Down

0 comments on commit 08956d4

Please sign in to comment.