Skip to content

Commit

Permalink
fix(web): documentation upload fails
Browse files Browse the repository at this point in the history
  • Loading branch information
randombenj committed Sep 17, 2020
1 parent 6ef6f92 commit 459575b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion web/src/repositories/ProjectRepository.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export default {
await fetch(`${this.baseURL}/api/${projectName}/${version}`,
{
method: 'POST',
headers: { 'Content-Type': 'multipart/form-data' },
body
}
)
Expand Down
3 changes: 1 addition & 2 deletions web/tests/unit/project-repository.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ describe('ProjectRepository', () => {
expect(global.fetch).toHaveBeenCalledTimes(1)
expect(global.fetch).toHaveBeenCalledWith('https://do.cat/api/awesome-project/4.0',
{
'body': {'data': true},
'headers': {'Content-Type': 'multipart/form-data'},
'body': { 'data': true },
'method': 'POST'
}
)
Expand Down

0 comments on commit 459575b

Please sign in to comment.