Skip to content

Commit

Permalink
prefer forEach for test iteration
Browse files Browse the repository at this point in the history
Co-authored-by: Philippe Rivière <fil@rezo.net>
  • Loading branch information
mythmon and Fil authored Apr 22, 2024
1 parent 18bbcca commit 66c01ac
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/archives.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const archiveTools = [
{ binary: "zstd" },
];

archiveTools.map(binaryOnPathTest);
archiveTools.forEach(binaryOnPathTest);
2 changes: 1 addition & 1 deletion tests/data-manip.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const dataManipTools = [
{ binary: "csv2parquet" },
];

dataManipTools.map(binaryOnPathTest);
dataManipTools.forEach(binaryOnPathTest);

binaryVersionTest({
binary: "duckdb",
Expand Down
2 changes: 1 addition & 1 deletion tests/dataloader-languages.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ const dataLoaderLanguages = [
},
];

dataLoaderLanguages.map(binaryVersionTest);
dataLoaderLanguages.forEach(binaryVersionTest);
2 changes: 1 addition & 1 deletion tests/general-cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ const generalCliTools: { binary: string }[] = [
{ binary: "vmstat" },
];

generalCliTools.map(binaryOnPathTest);
generalCliTools.forEach(binaryOnPathTest);
2 changes: 1 addition & 1 deletion tests/images.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ const imageTools = [
{ binary: "convert", name: "imagemagick" },
];

imageTools.map(binaryOnPathTest);
imageTools.forEach(binaryOnPathTest);
2 changes: 1 addition & 1 deletion tests/networking.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ const networkingTools = [
{ binary: "wget" },
];

networkingTools.map(binaryOnPathTest);
networkingTools.forEach(binaryOnPathTest);
2 changes: 1 addition & 1 deletion tests/text-manip.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ const textManipTools: { binary: string }[] = [
{ binary: "vim" },
];

textManipTools.map(binaryOnPathTest);
textManipTools.forEach(binaryOnPathTest);

0 comments on commit 66c01ac

Please sign in to comment.