Skip to content

Commit

Permalink
chore: update descriptions in key-spacing tests (#17195)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed May 22, 2023
1 parent 7a2a0be commit 37432f2
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tests/lib/rules/key-spacing.js
Expand Up @@ -942,10 +942,10 @@ ruleTester.run("key-spacing", rule, {
{
code: `
var foo = {
"๐ŸŒท": "bar", // 2 code points
"๐ŸŽ": "baz", // 2 code points
"๐Ÿ‡ฎ๐Ÿ‡ณ": "qux", // 4 code points
"๐Ÿณ๏ธโ€๐ŸŒˆ": "xyz", // 6 code points
"๐ŸŒท": "bar", // 1 grapheme, 1 code point, 2 code units
"๐ŸŽ": "baz", // 1 grapheme, 1 code point, 2 code units
"๐Ÿ‡ฎ๐Ÿ‡ณ": "qux", // 1 grapheme, 2 code points, 4 code units
"๐Ÿณ๏ธโ€๐ŸŒˆ": "xyz", // 1 grapheme, 4 code points, 6 code units
};
`,
options: [{
Expand Down Expand Up @@ -2467,18 +2467,18 @@ ruleTester.run("key-spacing", rule, {
{
code: `
var foo = {
"๐ŸŒท": "bar", // 2 code points
"๐ŸŽ": "baz", // 2 code points
"๐Ÿ‡ฎ๐Ÿ‡ณ": "qux", // 4 code points
"๐Ÿณ๏ธโ€๐ŸŒˆ": "xyz", // 6 code points
"๐ŸŒท": "bar", // 1 grapheme, 1 code point, 2 code units
"๐ŸŽ": "baz", // 1 grapheme, 1 code point, 2 code units
"๐Ÿ‡ฎ๐Ÿ‡ณ": "qux", // 1 grapheme, 2 code points, 4 code units
"๐Ÿณ๏ธโ€๐ŸŒˆ": "xyz", // 1 grapheme, 4 code points, 6 code units
};
`,
output: `
var foo = {
"๐ŸŒท": "bar", // 2 code points
"๐ŸŽ": "baz", // 2 code points
"๐Ÿ‡ฎ๐Ÿ‡ณ": "qux", // 4 code points
"๐Ÿณ๏ธโ€๐ŸŒˆ": "xyz", // 6 code points
"๐ŸŒท": "bar", // 1 grapheme, 1 code point, 2 code units
"๐ŸŽ": "baz", // 1 grapheme, 1 code point, 2 code units
"๐Ÿ‡ฎ๐Ÿ‡ณ": "qux", // 1 grapheme, 2 code points, 4 code units
"๐Ÿณ๏ธโ€๐ŸŒˆ": "xyz", // 1 grapheme, 4 code points, 6 code units
};
`,
options: [{
Expand Down

0 comments on commit 37432f2

Please sign in to comment.