From 8b8028353407dd3acb1f641084e503f6a7d6f528 Mon Sep 17 00:00:00 2001 From: Matthew McEachen Date: Sun, 3 Sep 2023 22:03:41 -0700 Subject: [PATCH] add doc --- src/Which.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Which.spec.ts b/src/Which.spec.ts index 1ff4b3c0..3a2be649 100644 --- a/src/Which.spec.ts +++ b/src/Which.spec.ts @@ -6,6 +6,8 @@ if (!isWin32()) { describe("Which", () => { it("finds perl", async () => { const act = await which("perl") + // macOS is `/usr/local/bin/perl`. Most linux distros will use + // `/usr/bin/perl`, but could be `/bin/perl` and still be valid. expect(act).to.match(/^(\/usr(\/local)?)?\/bin\/perl$/) }) it("finds node", async () => {