@@ -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