From efcca058eca7b4b9fe7c024c95a43bf512ea3ccc Mon Sep 17 00:00:00 2001 From: "Shahar \"Dawn\" Or" Date: Sat, 9 Nov 2024 20:45:40 +0700 Subject: [PATCH] test: improve naming in sorted test --- src/test/rules.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/test/rules.ts b/src/test/rules.ts index 63b7035d..2d2c5df4 100644 --- a/src/test/rules.ts +++ b/src/test/rules.ts @@ -137,14 +137,14 @@ test('rule lists and objects are sorted', (t) => { const actualRuleLists = { ..._.mapKeys( rulesToConsider, - (_rules, pluginName) => `${pluginName}ToConsider`, + (_rules, pluginName) => `rules to consider/${pluginName}`, ), - expectedEslintCommentsRules: Object.keys(expectedEslintCommentsRules), - expectedEslintRules: Object.keys(expectedEslintRules), - expectedImportRules: Object.keys(expectedImportRules), - expectedNRules: Object.keys(expectedNRules), - expectedPromiseRules: Object.keys(expectedPromiseRules), - expectedTseslintRules: Object.keys(expectedTseslintRules), + 'expected rules/eslint-comments': Object.keys(expectedEslintCommentsRules), + 'expected rules/eslint': Object.keys(expectedEslintRules), + 'expected rules/import': Object.keys(expectedImportRules), + 'expected rules/n': Object.keys(expectedNRules), + 'expected rules/promise': Object.keys(expectedPromiseRules), + 'expected rules/@typescript-eslint': Object.keys(expectedTseslintRules), ..._.mapValues(rulesPerPlugin, (rules) => Object.keys(rules)), }