Skip to content

Commit

Permalink
test: improve naming in sorted test
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Nov 9, 2024
1 parent e6c391a commit efcca05
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/test/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
}

Expand Down

0 comments on commit efcca05

Please sign in to comment.