Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Sep 4, 2023
1 parent 2d08cc0 commit 8b80283
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Which.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 8b80283

Please sign in to comment.