Skip to content

Commit 875b7fb

Browse files
authored
Simplify convert row to table (#14472)
1 parent 97c41f3 commit 875b7fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/jest-each/src/table/template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function template(
2929
}
3030

3131
const convertRowToTable = (row: Global.Row, headings: Headings): Global.Table =>
32-
Array.from({length: row.length / headings.length}).map((_, index) =>
32+
Array.from({length: row.length / headings.length}, (_, index) =>
3333
row.slice(
3434
index * headings.length,
3535
index * headings.length + headings.length,

0 commit comments

Comments
 (0)