diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-07-29 17:46:21 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-07-29 08:46:21 +0000 |
commit | b76007d25caf2cd9325813149a907c1e51728fca (patch) | |
tree | cc5faafb3985178f19f96bc9d5bd3d4198133346 /examples/test.ts | |
parent | 44efefbda6d30edc602257c1a2501259e7ef9626 (diff) |
refactor: use Deno.execPath where possible (denoland/deno_std#548)
Original: https://github.com/denoland/deno_std/commit/287b0a9cd259952387739405152e031e9abcdb63
Diffstat (limited to 'examples/test.ts')
-rw-r--r-- | examples/test.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/test.ts b/examples/test.ts index 8158763be..542a191bf 100644 --- a/examples/test.ts +++ b/examples/test.ts @@ -15,7 +15,13 @@ test(function t2(): void { /** A more complicated test that runs a subprocess. */ test(async function catSmoke(): Promise<void> { const p = run({ - args: ["deno", "run", "--allow-read", "examples/cat.ts", "README.md"], + args: [ + Deno.execPath, + "run", + "--allow-read", + "examples/cat.ts", + "README.md" + ], stdout: "piped" }); const s = await p.status(); |