Skip to content

Commit ce035e5

Browse files
authored
test: cleanup typos (#15937)
1 parent 1351a9b commit ce035e5

22 files changed

Lines changed: 41 additions & 41 deletions

tests/fixtures/parsers/arrow-parens/identifer-type.js renamed to tests/fixtures/parsers/arrow-parens/identifier-type.js

File renamed without changes.

tests/lib/cli-engine/cli-engine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5336,7 +5336,7 @@ describe("CLIEngine", () => {
53365336
});
53375337
});
53385338

5339-
describe("when retreiving version number", () => {
5339+
describe("when retrieving version number", () => {
53405340
it("should return current version number", () => {
53415341
const eslintCLI = require("../../../lib/cli-engine").CLIEngine;
53425342
const version = eslintCLI.version;

tests/lib/eslint/eslint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5212,7 +5212,7 @@ describe("ESLint", () => {
52125212
});
52135213
});
52145214

5215-
describe("when retreiving version number", () => {
5215+
describe("when retrieving version number", () => {
52165216
it("should return current version number", () => {
52175217
const eslintCLI = require("../../../lib/eslint").ESLint;
52185218
const version = eslintCLI.version;

tests/lib/linter/apply-disable-directives.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ describe("apply-disable-directives", () => {
667667
line: 1,
668668
column: 1,
669669
ruleId: null,
670-
justification: "justificatiion"
670+
justification: "justification"
671671
}],
672672
problems: [{ line: 3, column: 3, ruleId: "foo" }]
673673
}),

tests/lib/linter/code-path-analysis/code-path.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ describe("CodePathAnalyzer", () => {
6969

7070
/*
7171
* If you need to output the code paths and DOT graph information for a
72-
* particular piece of code, udpate and uncomment the following test and
72+
* particular piece of code, update and uncomment the following test and
7373
* then run:
7474
* DEBUG=eslint:code-path npx mocha tests/lib/linter/code-path-analysis/
7575
*

tests/lib/linter/config-comment-parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ describe("ConfigCommentParser", () => {
215215
});
216216
});
217217

218-
it("should parse list config with two items and exta whitespace", () => {
218+
it("should parse list config with two items and extra whitespace", () => {
219219
const code = " a , b ";
220220
const result = commentParser.parseListConfig(code);
221221

tests/lib/linter/linter.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2625,7 +2625,7 @@ describe("Linter", () => {
26252625
assert.strictEqual(suppressedMessages[1].ruleId, "quotes");
26262626
});
26272627

2628-
it("should ignore violations of multiple rules when specified in mixed sinlge line and multi line comments", () => {
2628+
it("should ignore violations of multiple rules when specified in mixed single line and multi line comments", () => {
26292629
const code = [
26302630
"/* eslint-disable-next-line",
26312631
"no-alert",
@@ -3915,7 +3915,7 @@ var a = "test2";
39153915
assert.strictEqual(suppressedMessages[0].suppressions.length, 2);
39163916
});
39173917

3918-
it("reports problems for multiple unused eslint-disable comments with mutliple ruleIds", () => {
3918+
it("reports problems for multiple unused eslint-disable comments with multiple ruleIds", () => {
39193919
const code = [
39203920
"/* eslint no-undef: 2, no-void: 2 */",
39213921
"/* eslint-disable no-undef -- j1 */",
@@ -12562,7 +12562,7 @@ var a = "test2";
1256212562
const code = `
1256312563
/* eslint-disable-next-line no-alert --
1256412564
description on why this exception is seen as appropriate but past a
12565-
comfortable reading line length
12565+
comfortable reading line length
1256612566
*/
1256712567
alert("buzz");
1256812568
`;
@@ -12689,7 +12689,7 @@ var a = "test2";
1268912689
assert.strictEqual(suppressedMessages[1].ruleId, "quotes");
1269012690
});
1269112691

12692-
it("should ignore violations of multiple rules when specified in mixed sinlge line and multi line comments", () => {
12692+
it("should ignore violations of multiple rules when specified in mixed single line and multi line comments", () => {
1269312693
const code = [
1269412694
"/* eslint-disable-next-line",
1269512695
"no-alert",

tests/lib/linter/node-event-generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe("NodeEventGenerator", () => {
6060
assert(emitter.emit.calledWith("Foo", dummyNode));
6161
});
6262

63-
it("should generate events for exitting AST node.", () => {
63+
it("should generate events for exiting AST node.", () => {
6464
const dummyNode = { type: "Foo", value: 1 };
6565

6666
generator.leaveNode(dummyNode);

tests/lib/rules/array-bracket-newline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ ruleTester.run("array-bracket-newline", rule, {
440440

441441
invalid: [
442442

443-
// default : { mutliline : true}
443+
// default : { multiline : true}
444444
{
445445
code: `var foo = [
446446
[1,2]

tests/lib/rules/arrow-parens.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const valid = [
4646
{ code: "a.then((foo) => {});", options: ["always"] },
4747
{ code: "a.then((foo) => { if (true) {}; });", options: ["always"] },
4848
{ code: "a.then(async (foo) => { if (true) {}; });", options: ["always"], parserOptions: { ecmaVersion: 8 } },
49-
{ code: "(a: T) => a", options: ["always"], parser: parser("identifer-type") },
49+
{ code: "(a: T) => a", options: ["always"], parser: parser("identifier-type") },
5050
{ code: "(a): T => a", options: ["always"], parser: parser("return-type") },
5151

5252
// "as-needed"
@@ -64,7 +64,7 @@ const valid = [
6464
{ code: "async a => a", options: ["as-needed"], parserOptions: { ecmaVersion: 8 } },
6565
{ code: "async ([a, b]) => {}", options: ["as-needed"], parserOptions: { ecmaVersion: 8 } },
6666
{ code: "async (a, b) => {}", options: ["as-needed"], parserOptions: { ecmaVersion: 8 } },
67-
{ code: "(a: T) => a", options: ["as-needed"], parser: parser("identifer-type") },
67+
{ code: "(a: T) => a", options: ["as-needed"], parser: parser("identifier-type") },
6868
{ code: "(a): T => a", options: ["as-needed"], parser: parser("return-type") },
6969

7070
// "as-needed", { "requireForBlockBody": true }
@@ -83,7 +83,7 @@ const valid = [
8383
{ code: "a => ({})", options: ["as-needed", { requireForBlockBody: true }] },
8484
{ code: "async a => ({})", options: ["as-needed", { requireForBlockBody: true }], parserOptions: { ecmaVersion: 8 } },
8585
{ code: "async a => a", options: ["as-needed", { requireForBlockBody: true }], parserOptions: { ecmaVersion: 8 } },
86-
{ code: "(a: T) => a", options: ["as-needed", { requireForBlockBody: true }], parser: parser("identifer-type") },
86+
{ code: "(a: T) => a", options: ["as-needed", { requireForBlockBody: true }], parser: parser("identifier-type") },
8787
{ code: "(a): T => a", options: ["as-needed", { requireForBlockBody: true }], parser: parser("return-type") },
8888
{
8989
code: "const f = (/** @type {number} */a/**hello*/) => a + a;",

0 commit comments

Comments
 (0)