Skip to content

Commit d421a0a

Browse files
committed
fix: test that getUrl receives baseURL again
1 parent c2ed2da commit d421a0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/openapi-ts/src/plugins/@hey-api/client-axios/__tests__/utils-buildUrl.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('buildUrl', () => {
2424
description: 'without query params',
2525
expectedUrl: '/some-url',
2626
inputOptions: {
27-
baseUrl: 'some-base-url',
27+
baseURL: 'some-base-url',
2828
path: { param1: 'some-path-param' },
2929
query: undefined,
3030
querySerializer: (() => '') as QuerySerializer,
@@ -45,8 +45,8 @@ describe('buildUrl', () => {
4545

4646
expect(builtUrl).toBe(expectedUrl);
4747

48-
// baseUrl is not included in the URL
4948
expect(getUrlMock).toHaveBeenCalledExactlyOnceWith({
49+
baseUrl: inputOptions.baseURL,
5050
path: inputOptions.path,
5151
query: inputOptions.query,
5252
querySerializer: inputOptions.querySerializer,

0 commit comments

Comments
 (0)