From 37432f27dc15817d66cf42377792197dc2aeb8b2 Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Mon, 22 May 2023 04:34:02 +0200 Subject: [PATCH] chore: update descriptions in key-spacing tests (#17195) --- tests/lib/rules/key-spacing.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/lib/rules/key-spacing.js b/tests/lib/rules/key-spacing.js index 9ac345d39c1..96103129e9f 100644 --- a/tests/lib/rules/key-spacing.js +++ b/tests/lib/rules/key-spacing.js @@ -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: [{ @@ -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: [{