Skip to content

Commit bc4cd41

Browse files
committed
test: fix typos
1 parent 4edc6db commit bc4cd41

31 files changed

+227
-227
lines changed

test/common/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ const buildType = process.config.target_defaults ?
148148

149149
// If env var is set then enable async_hook hooks for all tests.
150150
if (process.env.NODE_TEST_WITH_ASYNC_HOOKS) {
151-
const destroydIdsList = {};
151+
const destroyedIdsList = {};
152152
const destroyListList = {};
153153
const initHandles = {};
154154
const { internalBinding } = require('internal/test/binding');
@@ -187,12 +187,12 @@ if (process.env.NODE_TEST_WITH_ASYNC_HOOKS) {
187187
before() { },
188188
after() { },
189189
destroy(id) {
190-
if (destroydIdsList[id] !== undefined) {
191-
process._rawDebug(destroydIdsList[id]);
190+
if (destroyedIdsList[id] !== undefined) {
191+
process._rawDebug(destroyedIdsList[id]);
192192
process._rawDebug();
193193
throw new Error(`destroy called for same id (${id})`);
194194
}
195-
destroydIdsList[id] = inspect(new Error());
195+
destroyedIdsList[id] = inspect(new Error());
196196
},
197197
}).enable();
198198
}

test/fixtures/dotenv/basic-valid.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
BASIC=overriden
1+
BASIC=overridden

test/fixtures/guess-hash-seed.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function time_set_lookup(set, value) {
8181
// Set with 256 buckets; bucket 0 full, others empty
8282
const tester_set_buckets = 256;
8383
const tester_set = new Set();
84-
let tester_set_treshold;
84+
let tester_set_threshold;
8585
(function() {
8686
// fill bucket 0 and find extra numbers mapping to bucket 0 and a different
8787
// bucket `capacity == numBuckets * 2`
@@ -114,9 +114,9 @@ let tester_set_treshold;
114114
const neg_time =
115115
Math.min(...run_repeated(10000, time_set_lookup.bind(null, tester_set,
116116
negative_test_value)));
117-
tester_set_treshold = (pos_time + neg_time) / 2;
117+
tester_set_threshold = (pos_time + neg_time) / 2;
118118
// console.log(`pos_time: ${pos_time}, neg_time: ${neg_time},`,
119-
// `threshold: ${tester_set_treshold}`);
119+
// `threshold: ${tester_set_threshold}`);
120120
})();
121121

122122
// determine hash seed
@@ -126,7 +126,7 @@ const slow_str_gen = (function*() {
126126
while (1) {
127127
const str = `#${strgen_i++}`;
128128
for (let i = 0; i < 1000; i++) {
129-
if (time_set_lookup(tester_set, str) < tester_set_treshold)
129+
if (time_set_lookup(tester_set, str) < tester_set_threshold)
130130
continue outer;
131131
}
132132
yield str;

test/fixtures/postject-copy/node_modules/commander/lib/help.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/fixtures/postject-copy/node_modules/postject/README.markdown

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/fixtures/postject-copy/node_modules/postject/dist/api.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/fixtures/snapshot/marked.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -2177,19 +2177,19 @@
21772177

21782178
_proto.getNextSafeSlug = function getNextSafeSlug(originalSlug, isDryRun) {
21792179
var slug = originalSlug;
2180-
var occurenceAccumulator = 0;
2180+
var occurrenceAccumulator = 0;
21812181

21822182
if (this.seen.hasOwnProperty(slug)) {
2183-
occurenceAccumulator = this.seen[originalSlug];
2183+
occurrenceAccumulator = this.seen[originalSlug];
21842184

21852185
do {
2186-
occurenceAccumulator++;
2187-
slug = originalSlug + '-' + occurenceAccumulator;
2186+
occurrenceAccumulator++;
2187+
slug = originalSlug + '-' + occurrenceAccumulator;
21882188
} while (this.seen.hasOwnProperty(slug));
21892189
}
21902190

21912191
if (!isDryRun) {
2192-
this.seen[originalSlug] = occurenceAccumulator;
2192+
this.seen[originalSlug] = occurrenceAccumulator;
21932193
this.seen[slug] = 0;
21942194
}
21952195

0 commit comments

Comments
 (0)