Skip to content

Commit

Permalink
Merge pull request #16 from dhensby/pulls/rm-body
Browse files Browse the repository at this point in the history
Remove body from HttpLike
  • Loading branch information
dhensby committed Sep 16, 2022
2 parents 442bbf2 + d230253 commit c751699
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 106 deletions.
104 changes: 0 additions & 104 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"scripts": {
"build": "tsc",
"lint": "eslint -c .eslintrc ./src/**/*.ts ./test/**/*.ts",
"lint:fix": "npm run lint --silent -- --fix",
"prepare": "npm run build",
"preversion": "npm run lint",
"test": "mocha -r ts-node/register test/**/*.ts"
Expand Down
1 change: 0 additions & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ type HttpLike = {
method: string,
url: string,
headers: Record<string, { toString(): string } | string | string[] | undefined>,
body?: string | Buffer,
}

export type RequestLike = HttpLike;
Expand Down
1 change: 0 additions & 1 deletion test/httpbis/httpbis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ describe('httpbis', () => {
'Digest': 'SHA-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=',
'Content-Length': '18',
},
body: '{"hello": "world"}',
};
it('constructs minimal example', () => {
const components: Component[] = [];
Expand Down

0 comments on commit c751699

Please sign in to comment.