From 320f4f066ac92fecdc0fecf59b6aaf959d1dad2c Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Thu, 18 May 2023 10:51:27 +0200 Subject: [PATCH] chore: update descriptions in key-spacing tests --- 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: [{