Skip to content

Commit af14d51

Browse files
committed
test: use Reflect.get()
1 parent 60846b3 commit af14d51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/plugin.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('Plugin works with commitlint', () => {
1919
} satisfies Partial<PluginRulesConfig>;
2020

2121
const getRules = (...keys: (keyof PluginRulesConfig)[]): Partial<QualifiedRules> =>
22-
Object.fromEntries(keys.map((key) => [key, rules[key]]));
22+
Object.fromEntries(keys.map((key) => [key, Reflect.get(rules, key)]));
2323

2424
it.each([
2525
['cspell/type', 'speling: Bad type'],

0 commit comments

Comments
 (0)