Skip to content

Commit

Permalink
Merge pull request #66 from bioinformatics-ua/superagent_8
Browse files Browse the repository at this point in the history
Update superagent to v8
  • Loading branch information
Enet4 authored Oct 6, 2023
2 parents 7978d1e + 8a771a4 commit 1b65a7f
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 41 deletions.
108 changes: 68 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"license": "GPL-3.0+",
"dependencies": {
"@types/superagent": "^4.1.15",
"superagent": "^5.3.1"
"superagent": "^8.1.2"
},
"devDependencies": {
"@types/chai": "^4.3.3",
Expand Down
2 changes: 2 additions & 0 deletions test/mock/service-mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ export default function createDicoogleMock(port = 8080): ReturnType<typeof dicoo
.post('/management/tasks/unindex', ({ uri: uris }) => {
return uris.length > 0 && uris.every(validateURI);
})
// client must send more than one URI via form data
.matchHeader('Content-Type', 'application/x-www-form-urlencoded')
.reply(200)

// mock unindex on specific provider (via query string)
Expand Down

0 comments on commit 1b65a7f

Please sign in to comment.