From b76007d25caf2cd9325813149a907c1e51728fca Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Mon, 29 Jul 2019 17:46:21 +0900 Subject: refactor: use Deno.execPath where possible (denoland/deno_std#548) Original: https://github.com/denoland/deno_std/commit/287b0a9cd259952387739405152e031e9abcdb63 --- examples/test.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'examples') 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 { 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(); -- cgit v1.2.3