diff --git a/utils/pid.test.ts b/utils/pid.test.ts index a898456..5e39afa 100644 --- a/utils/pid.test.ts +++ b/utils/pid.test.ts @@ -1,8 +1,8 @@ import { test } from "@cross/test"; -import { assertTrue } from "@std/assert"; +import { assertEquals } from "@std/assert"; import { pid } from "./pid.ts"; test("Aliases don't override original arguments", () => { - assertTrue(pid() > 0); + assertEquals(pid() > 0, true); }); diff --git a/utils/pid.ts b/utils/pid.ts index 6778460..6cbe4cc 100644 --- a/utils/pid.ts +++ b/utils/pid.ts @@ -12,7 +12,7 @@ import { CurrentRuntime, Runtime } from "@cross/runtime"; export function pid(): number { if (CurrentRuntime === Runtime.Deno) { //@ts-ignore cross-runtime - return crossPid(); + return Deno.pid; } else { //@ts-ignore cross-runtime return process.pid;