| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 52d1c8d commit 2f68209
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,10 +12,10 @@ const longPath = path.join(...[tmpDir].concat(Array(30).fill('1234567890'))); | |||
| 12 | 12 | fs.mkdirSync(longPath, { recursive: true }); | |
| 13 | 13 | ||
| 14 | 14 | // Test if we can have symlinks to files and folders with long filenames | |
| 15 | - const targetDirtectory = path.join(longPath, 'target-directory'); | ||
| 16 | - fs.mkdirSync(targetDirtectory); | ||
| 15 | + const targetDirectory = path.join(longPath, 'target-directory'); | ||
| 16 | + fs.mkdirSync(targetDirectory); | ||
| 17 | 17 | const pathDirectory = path.join(tmpDir, 'new-directory'); | |
| 18 | - fs.symlink(targetDirtectory, pathDirectory, 'dir', common.mustSucceed(() => { | ||
| 18 | + fs.symlink(targetDirectory, pathDirectory, 'dir', common.mustSucceed(() => { | ||
| 19 | 19 | assert(fs.existsSync(pathDirectory)); | |
| 20 | 20 | })); | |
| 21 | 21 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -54,9 +54,9 @@ for (let i = 0; i < validDelays.length; i++) { | |||
| 54 | 54 | } | |
| 55 | 55 | ||
| 56 | 56 | for (let i = 0; i < invalidCallbacks.length; i++) { | |
| 57 | - [0, 1].forEach((mesc) => | ||
| 57 | + [0, 1].forEach((msec) => | ||
| 58 | 58 | assert.throws( | |
| 59 | - () => s.setTimeout(mesc, invalidCallbacks[i]), | ||
| 59 | + () => s.setTimeout(msec, invalidCallbacks[i]), | ||
| 60 | 60 | { | |
| 61 | 61 | code: 'ERR_INVALID_CALLBACK', | |
| 62 | 62 | name: 'TypeError', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ let µtaskId; | |||
| 11 | 11 | const events = []; | |
| 12 | 12 | ||
| 13 | 13 | async_hooks.createHook({ | |
| 14 | - init(id, type, triggerId, resoure) { | ||
| 14 | + init(id, type, triggerId, resource) { | ||
| 15 | 15 | if (type === 'Microtask') { | |
| 16 | 16 | µtaskId = id; | |
| 17 | 17 | events.push('init'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -155,10 +155,10 @@ const { Blob } = require('buffer'); | |||
| 155 | 155 | // Ensure that Duplex.from works for blobs | |
| 156 | 156 | { | |
| 157 | 157 | const blob = new Blob(['blob']); | |
| 158 | - const expecteByteLength = blob.size; | ||
| 158 | + const expectedByteLength = blob.size; | ||
| 159 | 159 | const duplex = Duplex.from(blob); | |
| 160 | 160 | duplex.on('data', common.mustCall((arrayBuffer) => { | |
| 161 | - assert.strictEqual(arrayBuffer.byteLength, expecteByteLength); | ||
| 161 | + assert.strictEqual(arrayBuffer.byteLength, expectedByteLength); | ||
| 162 | 162 | })); | |
| 163 | 163 | } | |
| 164 | 164 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -68,7 +68,7 @@ assert.throws(() => { | |||
| 68 | 68 | message: 'Unknown encoding: {}' | |
| 69 | 69 | }); | |
| 70 | 70 | ||
| 71 | - (function checkVairableCaseEncoding() { | ||
| 71 | + (function checkVariableCaseEncoding() { | ||
| 72 | 72 | const m = new MyWritable(function(isBuffer, type, enc) { | |
| 73 | 73 | assert.strictEqual(enc, 'ascii'); | |
| 74 | 74 | }, { decodeStrings: false }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments