Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8ba0c20

Browse files
committedMay 13, 2021
Small fixes
1 parent b579b21 commit 8ba0c20

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎lib/Encoder.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ test("Has content-type string with custom boundary string", t => {
3737

3838
const encoder = new Encoder(new FormData(), expected)
3939

40-
t.is(encoder.contentType, `multipart/form-data; boundary=${expected}`)
40+
t.is(encoder.boundary, expected)
4141
})
4242

4343
test("Has correct headers", async t => {
@@ -174,7 +174,7 @@ test("Yields File's content", async t => {
174174
t.is<string>(chunks.join("\n"), expected)
175175
})
176176

177-
test("Yields every appended file", async t => {
177+
test("Yields every appended field", async t => {
178178
const expectedDisposition = "Content-Disposition: form-data; name=\"field\""
179179

180180
const fd = new FormData()

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"ts-node": "9.1.1",
5858
"ttypescript": "1.5.12",
5959
"typescript": "4.2.4",
60-
"web-streams-polyfill": "^3.0.3"
60+
"web-streams-polyfill": "3.0.3"
6161
},
6262
"dependencies": {
6363
"mime-types": "2.1.30"

‎pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.