Skip to content

Commit f7f0b48

Browse files
authored
Update index-test.js
1 parent 2e19fa7 commit f7f0b48

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

__tests__/index-test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ test('schemas', (t) => {
4040
});
4141

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

0 commit comments

Comments
 (0)