Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix typo octect -> octet #350

Merged
merged 1 commit into from
Jun 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/big.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ test('should upload a big file in constant memory', { skip: process.env.CI }, fu
t.equal(part.fieldname, 'upload')
t.equal(part.filename, 'random-data')
t.equal(part.encoding, '7bit')
t.equal(part.mimetype, 'binary/octect-stream')
t.equal(part.mimetype, 'binary/octet-stream')

await sendToWormhole(part.file)
}
Expand Down Expand Up @@ -68,7 +68,7 @@ test('should upload a big file in constant memory', { skip: process.env.CI }, fu
})
form.append('upload', rs, {
filename: 'random-data',
contentType: 'binary/octect-stream',
contentType: 'binary/octet-stream',
knownLength
})

Expand Down
4 changes: 2 additions & 2 deletions test/legacy/big.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ test('should upload a big file in constant memory', { skip: process.env.CI }, fu
t.equal(filename, 'random-data')
t.equal(field, 'upload')
t.equal(encoding, '7bit')
t.equal(mimetype, 'binary/octect-stream')
t.equal(mimetype, 'binary/octet-stream')
const hashOutput = crypto.createHash('sha256')

pump(file, hashOutput, new Writable({
Expand Down Expand Up @@ -88,7 +88,7 @@ test('should upload a big file in constant memory', { skip: process.env.CI }, fu
})
form.append('upload', rs, {
filename: 'random-data',
contentType: 'binary/octect-stream',
contentType: 'binary/octet-stream',
knownLength
})

Expand Down
2 changes: 1 addition & 1 deletion test/multipart-big-stream.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ test('should emit fileSize limitation error during streaming', async function (t
const req = http.request(opts)
form.append('upload', rs, {
filename: 'random-data',
contentType: 'binary/octect-stream',
contentType: 'binary/octet-stream',
knownLength
})

Expand Down
4 changes: 2 additions & 2 deletions test/multipart-disk.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ test('should throw on file limit error, after highWaterMark', async function (t)
const req = http.request(opts)
form.append('upload2', rs, {
filename: 'random-data',
contentType: 'binary/octect-stream',
contentType: 'binary/octet-stream',
knownLength
})

Expand Down Expand Up @@ -454,7 +454,7 @@ test('should process large files correctly', async function (t) {

form.append('upload', rs, {
filename: 'random-data',
contentType: 'binary/octect-stream',
contentType: 'binary/octet-stream',
knownLength
})

Expand Down
2 changes: 1 addition & 1 deletion tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function next () {
form.append('my_field', 'my value')
form.append('upload', rs, {
filename: 'random-data',
contentType: 'binary/octect-stream',
contentType: 'binary/octet-stream',
knownLength
})

Expand Down