Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update the test numbers within test-mixer foreach loops
- Loading branch information
Showing
35 changed files
with
664 additions
and
64 deletions.
There are no files selected for viewing
377 changes: 317 additions & 60 deletions
377
packages/eslint-plugin-test-num-tbc/src/correct-test-num.ts
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test(`09 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], "09.02"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test(`01 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], "01.01"); | ||
}); | ||
}); |
1 change: 1 addition & 0 deletions
1
packages/eslint-plugin-test-num-tbc/test/fixtures/15-verify.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test(`09 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], "09.${pad(n)}"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test(`01 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], "01.${pad(n)}"); | ||
}); | ||
}); |
1 change: 1 addition & 0 deletions
1
packages/eslint-plugin-test-num-tbc/test/fixtures/16-verify.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test(`09 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], "a"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test(`01 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], "a"); | ||
}); | ||
}); |
1 change: 1 addition & 0 deletions
1
packages/eslint-plugin-test-num-tbc/test/fixtures/17-verify.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
35 changes: 35 additions & 0 deletions
35
packages/eslint-plugin-test-num-tbc/test/fixtures/18-in.zz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
test(`09 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], "9"); | ||
equal(convertOne(``, opt), [[4, 5, "’"]], '9'); | ||
equal(convertOne(``, opt), [[4, 5, "’"]], `9`); | ||
}); | ||
}); | ||
|
||
test(`09 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], "9"); | ||
equal(convertOne(``, opt), [[4, 5, "’"]], '9'); | ||
equal(convertOne(``, opt), [[4, 5, "’"]], `9`); | ||
}); | ||
}); | ||
|
||
test(`09 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], "9"); | ||
equal(convertOne(``, opt), [[4, 5, "’"]], '9'); | ||
equal(convertOne(``, opt), [[4, 5, "’"]], `9`); | ||
}); | ||
}); |
35 changes: 35 additions & 0 deletions
35
packages/eslint-plugin-test-num-tbc/test/fixtures/18-out.zz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
test(`01 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], "01.01"); | ||
equal(convertOne(``, opt), [[4, 5, "’"]], '01.02'); | ||
equal(convertOne(``, opt), [[4, 5, "’"]], `01.03`); | ||
}); | ||
}); | ||
|
||
test(`02 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], "02.01"); | ||
equal(convertOne(``, opt), [[4, 5, "’"]], '02.02'); | ||
equal(convertOne(``, opt), [[4, 5, "’"]], `02.03`); | ||
}); | ||
}); | ||
|
||
test(`03 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], "03.01"); | ||
equal(convertOne(``, opt), [[4, 5, "’"]], '03.02'); | ||
equal(convertOne(``, opt), [[4, 5, "’"]], `03.03`); | ||
}); | ||
}); |
1 change: 1 addition & 0 deletions
1
packages/eslint-plugin-test-num-tbc/test/fixtures/18-verify.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test(`09 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], "#0"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test(`01 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], "#0"); | ||
}); | ||
}); |
1 change: 1 addition & 0 deletions
1
packages/eslint-plugin-test-num-tbc/test/fixtures/19-verify.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test(`09 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], `#${"01"}`); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test(`01 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], `#${"01"}`); | ||
}); | ||
}); |
1 change: 1 addition & 0 deletions
1
packages/eslint-plugin-test-num-tbc/test/fixtures/20-verify.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test(`09 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], `09.${pad(n)}`); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test(`01 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], `01.${pad(n)}`); | ||
}); | ||
}); |
1 change: 1 addition & 0 deletions
1
packages/eslint-plugin-test-num-tbc/test/fixtures/21-verify.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
19 changes: 19 additions & 0 deletions
19
packages/eslint-plugin-test-num-tbc/test/fixtures/22-in.zz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
test(`09 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], `09.${pad(n)}`); | ||
}); | ||
}); | ||
|
||
test(`09 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], `09.${pad(n)}`); | ||
}); | ||
}); |
19 changes: 19 additions & 0 deletions
19
packages/eslint-plugin-test-num-tbc/test/fixtures/22-out.zz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
test(`01 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], `01.${pad(n)}`); | ||
}); | ||
}); | ||
|
||
test(`02 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], `02.${pad(n)}`); | ||
}); | ||
}); |
1 change: 1 addition & 0 deletions
1
packages/eslint-plugin-test-num-tbc/test/fixtures/22-verify.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test(`09 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], `09.02`); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test(`01 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], `01.01`); | ||
}); | ||
}); |
1 change: 1 addition & 0 deletions
1
packages/eslint-plugin-test-num-tbc/test/fixtures/23-verify.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
29 changes: 29 additions & 0 deletions
29
packages/eslint-plugin-test-num-tbc/test/fixtures/24-in.zz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
test(`09 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], '09.${pad(n)}'); | ||
}); | ||
}); | ||
|
||
test(`09 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], `09.${pad(n)}`); | ||
}); | ||
}); | ||
|
||
test(`09 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], "09.${pad(n)}"); | ||
}); | ||
}); |
29 changes: 29 additions & 0 deletions
29
packages/eslint-plugin-test-num-tbc/test/fixtures/24-out.zz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
test(`01 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], '01.${pad(n)}'); | ||
}); | ||
}); | ||
|
||
test(`02 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], `02.${pad(n)}`); | ||
}); | ||
}); | ||
|
||
test(`03 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], "03.${pad(n)}"); | ||
}); | ||
}); |
1 change: 1 addition & 0 deletions
1
packages/eslint-plugin-test-num-tbc/test/fixtures/24-verify.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test(`09 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], `${pad(n)}`); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
test(`01 - with entities`, () => { | ||
mixer({ | ||
convertDashes: true, | ||
convertEntities: true, | ||
removeWidows: false, | ||
}).forEach((opt, n) => { | ||
equal(convertOne(``, opt), [[4, 5, "’"]], `${pad(n)}`); | ||
}); | ||
}); |
1 change: 1 addition & 0 deletions
1
packages/eslint-plugin-test-num-tbc/test/fixtures/25-verify.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
Oops, something went wrong.