Skip to content

Commit

Permalink
chore: fix typo octect -> octet (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
is2ei committed Jun 7, 2022
1 parent 6852f90 commit c04dcb7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
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

0 comments on commit c04dcb7

Please sign in to comment.