Skip to content

Commit

Permalink
Update index-test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bradzacher authored Nov 17, 2024
1 parent 2e19fa7 commit f7f0b48
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions __tests__/index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ test('schemas', (t) => {
});

test('plugin referentially equal to prevent flat config issues', (t) => {
for (const config in Object.keys(plugin.flatConfigs)) {
t.equal(plugin, plugin.flatConfigs[config].plugins['jsx-a11y'], `${config.name}'s plugin reference is referentially equal to the top-level export`);
const keys = Object.keys(plugin.flatConfigs);
for (let i = 0; i < keys.length; i += 1) {
const config = plugin.flatConfigs[keys[i]];
t.equal(plugin, config.plugins['jsx-a11y'], `${config.name}'s plugin reference is referentially equal to the top-level export`);
}
t.end();
});

0 comments on commit f7f0b48

Please sign in to comment.