Skip to content

Commit

Permalink
Fix unit test due to params merge policy change
Browse files Browse the repository at this point in the history
  • Loading branch information
George Cheng authored and George Cheng committed Jun 3, 2019
1 parent ea0bdee commit 7d7fffd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,16 @@ it('should log params of the request of axios instance', () => axios.create()({
}))

it('should use axios default params when logging the URL', () => axios.create({
params: {
foo: 'bar'
},
paramsSerializer: params => {
const querystring = require('querystring')
return querystring.encode(params) + '&baz=qux'
}
})({
method: 'GET',
url: 'http://example.com/',
params: {
foo: 'bar'
},
adapter: config => Promise.resolve({
status: 200,
statusText: 'BAR',
Expand Down

0 comments on commit 7d7fffd

Please sign in to comment.