Skip to content

Commit

Permalink
test: do not run path test under windows
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesRudolph committed Mar 25, 2024
1 parent 25dc21e commit 3f4b45e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/model/CollieRepository.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { assertEquals, assertNotEquals } from "std/assert";
import { CollieRepository } from "./CollieRepository.ts";
import { isWindows } from "../os.ts";

Deno.test("relativePath calculates paths relative to repository root", () => {
const sut = CollieRepository.uninitialized("/tmp/test");
Expand All @@ -19,5 +20,8 @@ Deno.test("resolvePath works", () => {
const sut = CollieRepository.uninitialized("/tmp/test");

const result = sut.resolvePath("123");
assertEquals(result, "/tmp/test/123");

if (!isWindows) {
assertEquals(result, "/tmp/test/123");
}
});

0 comments on commit 3f4b45e

Please sign in to comment.