Skip to content

Commit

Permalink
feat: remove paramsSerializer as it's included by default in the new …
Browse files Browse the repository at this point in the history
…version of axios
  • Loading branch information
wanlingt committed Jan 9, 2024
1 parent 609c432 commit 2f4249f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/MyInfoGovClient.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ export class MyInfoGovClient {
response = await axios.get(url, {
headers,
params,
paramsSerializer: qs.stringify,
})
} catch (err: unknown) {
throw new MyInfoResponseError(err)
Expand Down
4 changes: 0 additions & 4 deletions test/unit/MyInfoGovClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,6 @@ describe('MyInfoGovClient', () => {

expect(MockAxios.get).toHaveBeenCalledWith(expectedUrl, {
params: expectedQueryParamsObj,
paramsSerializer: expect.any(Function),
headers: {
'Cache-Control': 'no-cache',
Authorization: expect.any(String),
Expand Down Expand Up @@ -431,7 +430,6 @@ describe('MyInfoGovClient', () => {

expect(MockAxios.get).toHaveBeenCalledWith(expectedUrl, {
params: expectedQueryParamsObj,
paramsSerializer: expect.any(Function),
headers: {
'Cache-Control': 'no-cache',
Authorization: expect.any(String),
Expand Down Expand Up @@ -567,7 +565,6 @@ describe('MyInfoGovClient', () => {

expect(MockAxios.get).toHaveBeenCalledWith(expectedUrl, {
params: expectedQueryParamsObj,
paramsSerializer: expect.any(Function),
headers: {
'Cache-Control': 'no-cache',
Authorization: expect.any(String),
Expand Down Expand Up @@ -626,7 +623,6 @@ describe('MyInfoGovClient', () => {

expect(MockAxios.get).toHaveBeenCalledWith(expectedUrl, {
params: expectedQueryParamsObj,
paramsSerializer: expect.any(Function),
headers: {
'Cache-Control': 'no-cache',
Authorization: expect.any(String),
Expand Down

0 comments on commit 2f4249f

Please sign in to comment.