Skip to content

Commit

Permalink
Maybe fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Feb 4, 2024
1 parent 2ab3a47 commit f5bf0bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/path.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { assert, assertEquals, assertRejects, assertThrows, withTempDir } from "./deps.test.ts";
import { createPathRef, PathRef } from "./path.ts";
import { path as stdPath } from "./deps.ts";
import { isNode } from "../npm/script/src/deps.test.js";

Deno.test("create from path ref", () => {
const path = createPathRef("src");
Expand Down Expand Up @@ -330,6 +331,11 @@ Deno.test("realpath", async () => {
file.writeTextSync("");
// need to do realPathSync for GH actions CI
file = file.realPathSync();
// for the comparison, node doesn't canonicalize
// RUNNER~1 to runneradmin for some reason
if (isNode && Deno.build.os === "windows") {
file = createPathRef(file.toString().replace("\\RUNNER~1\\", "\\runneradmin\\"));
}
const symlink = createPathRef("other");
symlink.createSymlinkToSync(file, { kind: "absolute" });
assertEquals(
Expand Down

0 comments on commit f5bf0bf

Please sign in to comment.