diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-06-12 20:23:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-12 15:23:38 -0400 |
commit | 1fff6f55c3ba98a10018c6d374795e612061e9b6 (patch) | |
tree | 12074b6d44736b11513d857e437f9e30a6bf65a4 /std/examples/tests/xeval_test.ts | |
parent | 26bf56afdaf16634ffbaa23684faf3a44cc10f62 (diff) |
refactor: Don't destructure the Deno namespace (#6268)
Diffstat (limited to 'std/examples/tests/xeval_test.ts')
-rw-r--r-- | std/examples/tests/xeval_test.ts | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/std/examples/tests/xeval_test.ts b/std/examples/tests/xeval_test.ts index f86e27866..9f7c5db9e 100644 --- a/std/examples/tests/xeval_test.ts +++ b/std/examples/tests/xeval_test.ts @@ -7,7 +7,6 @@ import { assertStringContains, assert, } from "../../testing/asserts.ts"; -const { execPath, run } = Deno; Deno.test("xevalSuccess", async function (): Promise<void> { const chunks: string[] = []; @@ -32,8 +31,14 @@ const xevalPath = "examples/xeval.ts"; Deno.test({ name: "xevalCliReplvar", fn: async function (): Promise<void> { - const p = run({ - cmd: [execPath(), "run", xevalPath, "--replvar=abc", "console.log(abc)"], + const p = Deno.run({ + cmd: [ + Deno.execPath(), + "run", + xevalPath, + "--replvar=abc", + "console.log(abc)", + ], stdin: "piped", stdout: "piped", stderr: "null", @@ -48,8 +53,8 @@ Deno.test({ }); Deno.test("xevalCliSyntaxError", async function (): Promise<void> { - const p = run({ - cmd: [execPath(), "run", xevalPath, "("], + const p = Deno.run({ + cmd: [Deno.execPath(), "run", xevalPath, "("], stdin: "null", stdout: "piped", stderr: "piped", |