Skip to content

Commit

Permalink
fix: test: Windows: Because Deno.realPath returns / separators on…
Browse files Browse the repository at this point in the history
… Windows.
  • Loading branch information
srackham committed May 20, 2020
1 parent 3d51692 commit ed6feaf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/registry_test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import { env } from "../lib/env.ts";
import { desc, run, task } from "../lib/registry.ts";
import { DrakeError, writeFile } from "../lib/utils.ts";
import { assert, assertEquals, assertThrowsAsync, existsSync } from "./deps.ts";
import {
assert,
assertEquals,
assertThrowsAsync,
existsSync,
path,
} from "./deps.ts";
env("--quiet", true);

Deno.test("registryTest", async function () {
Expand All @@ -12,7 +18,7 @@ Deno.test("registryTest", async function () {

env("--directory", ".");
assertEquals(
env("--directory"),
env("--directory").replace(/\//g, path.SEP),
dir,
"--directory path should be absolute",
);
Expand Down

0 comments on commit ed6feaf

Please sign in to comment.