Skip to content

Commit 37432f2

Browse files
authored
chore: update descriptions in key-spacing tests (#17195)
1 parent 7a2a0be commit 37432f2

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

โ€Žtests/lib/rules/key-spacing.jsโ€Ž

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -942,10 +942,10 @@ ruleTester.run("key-spacing", rule, {
942942
{
943943
code: `
944944
var foo = {
945-
"๐ŸŒท": "bar", // 2 code points
946-
"๐ŸŽ": "baz", // 2 code points
947-
"๐Ÿ‡ฎ๐Ÿ‡ณ": "qux", // 4 code points
948-
"๐Ÿณ๏ธโ€๐ŸŒˆ": "xyz", // 6 code points
945+
"๐ŸŒท": "bar", // 1 grapheme, 1 code point, 2 code units
946+
"๐ŸŽ": "baz", // 1 grapheme, 1 code point, 2 code units
947+
"๐Ÿ‡ฎ๐Ÿ‡ณ": "qux", // 1 grapheme, 2 code points, 4 code units
948+
"๐Ÿณ๏ธโ€๐ŸŒˆ": "xyz", // 1 grapheme, 4 code points, 6 code units
949949
};
950950
`,
951951
options: [{
@@ -2467,18 +2467,18 @@ ruleTester.run("key-spacing", rule, {
24672467
{
24682468
code: `
24692469
var foo = {
2470-
"๐ŸŒท": "bar", // 2 code points
2471-
"๐ŸŽ": "baz", // 2 code points
2472-
"๐Ÿ‡ฎ๐Ÿ‡ณ": "qux", // 4 code points
2473-
"๐Ÿณ๏ธโ€๐ŸŒˆ": "xyz", // 6 code points
2470+
"๐ŸŒท": "bar", // 1 grapheme, 1 code point, 2 code units
2471+
"๐ŸŽ": "baz", // 1 grapheme, 1 code point, 2 code units
2472+
"๐Ÿ‡ฎ๐Ÿ‡ณ": "qux", // 1 grapheme, 2 code points, 4 code units
2473+
"๐Ÿณ๏ธโ€๐ŸŒˆ": "xyz", // 1 grapheme, 4 code points, 6 code units
24742474
};
24752475
`,
24762476
output: `
24772477
var foo = {
2478-
"๐ŸŒท": "bar", // 2 code points
2479-
"๐ŸŽ": "baz", // 2 code points
2480-
"๐Ÿ‡ฎ๐Ÿ‡ณ": "qux", // 4 code points
2481-
"๐Ÿณ๏ธโ€๐ŸŒˆ": "xyz", // 6 code points
2478+
"๐ŸŒท": "bar", // 1 grapheme, 1 code point, 2 code units
2479+
"๐ŸŽ": "baz", // 1 grapheme, 1 code point, 2 code units
2480+
"๐Ÿ‡ฎ๐Ÿ‡ณ": "qux", // 1 grapheme, 2 code points, 4 code units
2481+
"๐Ÿณ๏ธโ€๐ŸŒˆ": "xyz", // 1 grapheme, 4 code points, 6 code units
24822482
};
24832483
`,
24842484
options: [{

0 commit comments

Comments
ย (0)