summaryrefslogtreecommitdiff
path: root/examples/test.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2019-07-29 17:46:21 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-07-29 08:46:21 +0000
commitb76007d25caf2cd9325813149a907c1e51728fca (patch)
treecc5faafb3985178f19f96bc9d5bd3d4198133346 /examples/test.ts
parent44efefbda6d30edc602257c1a2501259e7ef9626 (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.ts8
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();