Skip to content

Commit c05f01c

Browse files
committed
test(shims): Convert forEach() to it.each()
1 parent 64ed709 commit c05f01c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/zillow-js-shims/test/zillow-js-shims.test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ describe('target', () => {
1313
const targetsPath = path.join(__dirname, '../target');
1414
const targets = fs.readdirSync(targetsPath);
1515

16-
targets.forEach(target => {
17-
test(target, () => {
18-
expect(() => require(path.join(targetsPath, target))).not.toThrow();
19-
});
16+
it.each(targets)('%s', target => {
17+
expect(() => require(path.join(targetsPath, target))).not.toThrow();
2018
});
2119
});

0 commit comments

Comments
 (0)