From 66c01ac31d0ffe9d75d71288ab67bbb09a39e2aa Mon Sep 17 00:00:00 2001 From: Michael Cooper Date: Mon, 22 Apr 2024 08:16:35 -0700 Subject: [PATCH] prefer forEach for test iteration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Philippe Rivière --- tests/archives.test.ts | 2 +- tests/data-manip.test.ts | 2 +- tests/dataloader-languages.test.ts | 2 +- tests/general-cli.test.ts | 2 +- tests/images.test.ts | 2 +- tests/networking.test.ts | 2 +- tests/text-manip.test.ts | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/archives.test.ts b/tests/archives.test.ts index 13e34e5..f4ae48b 100644 --- a/tests/archives.test.ts +++ b/tests/archives.test.ts @@ -8,4 +8,4 @@ const archiveTools = [ { binary: "zstd" }, ]; -archiveTools.map(binaryOnPathTest); +archiveTools.forEach(binaryOnPathTest); diff --git a/tests/data-manip.test.ts b/tests/data-manip.test.ts index b738d76..7254751 100644 --- a/tests/data-manip.test.ts +++ b/tests/data-manip.test.ts @@ -6,7 +6,7 @@ const dataManipTools = [ { binary: "csv2parquet" }, ]; -dataManipTools.map(binaryOnPathTest); +dataManipTools.forEach(binaryOnPathTest); binaryVersionTest({ binary: "duckdb", diff --git a/tests/dataloader-languages.test.ts b/tests/dataloader-languages.test.ts index 4790244..47f9df9 100644 --- a/tests/dataloader-languages.test.ts +++ b/tests/dataloader-languages.test.ts @@ -27,4 +27,4 @@ const dataLoaderLanguages = [ }, ]; -dataLoaderLanguages.map(binaryVersionTest); +dataLoaderLanguages.forEach(binaryVersionTest); diff --git a/tests/general-cli.test.ts b/tests/general-cli.test.ts index 1ac2e79..785e136 100644 --- a/tests/general-cli.test.ts +++ b/tests/general-cli.test.ts @@ -10,4 +10,4 @@ const generalCliTools: { binary: string }[] = [ { binary: "vmstat" }, ]; -generalCliTools.map(binaryOnPathTest); +generalCliTools.forEach(binaryOnPathTest); diff --git a/tests/images.test.ts b/tests/images.test.ts index f5340d5..7a70efa 100644 --- a/tests/images.test.ts +++ b/tests/images.test.ts @@ -6,4 +6,4 @@ const imageTools = [ { binary: "convert", name: "imagemagick" }, ]; -imageTools.map(binaryOnPathTest); +imageTools.forEach(binaryOnPathTest); diff --git a/tests/networking.test.ts b/tests/networking.test.ts index 18edd29..8b88a58 100644 --- a/tests/networking.test.ts +++ b/tests/networking.test.ts @@ -10,4 +10,4 @@ const networkingTools = [ { binary: "wget" }, ]; -networkingTools.map(binaryOnPathTest); +networkingTools.forEach(binaryOnPathTest); diff --git a/tests/text-manip.test.ts b/tests/text-manip.test.ts index 7ac4ebc..e52222f 100644 --- a/tests/text-manip.test.ts +++ b/tests/text-manip.test.ts @@ -12,4 +12,4 @@ const textManipTools: { binary: string }[] = [ { binary: "vim" }, ]; -textManipTools.map(binaryOnPathTest); +textManipTools.forEach(binaryOnPathTest);