Skip to content

Commit 9f118d2

Browse files
committed
Fix windows tests
1 parent d0670c9 commit 9f118d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/eca/features/index_test.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
(deftest ignore?-test
1414
(testing "gitignore type"
15-
(let [root "/fake/repo"
15+
(let [root (h/file-path "/fake/repo")
1616
file1 (fs/path root "ignored.txt")
1717
file2 (fs/path root "not-ignored.txt")]
1818
(testing "returns filtered files when `git ls-files` works"
@@ -36,14 +36,14 @@
3636
"src/eca/core.clj"
3737
"test/eca/core_test.clj"])]
3838
(is (match?
39-
{"/fake/repo"
39+
{(h/file-path "/fake/repo")
4040
{"README.md" {}
4141
"src" {"eca" {"core.clj" {}}}
4242
"test" {"eca" {"core_test.clj" {}}}}}
4343
(eca.features.index/repo-map {:workspace-folders [{:uri (h/file-uri "file:///fake/repo")}]})))))
4444
(testing "returns string tree with as-string? true"
4545
(with-redefs [f.index/git-ls-files (constantly ["foo.clj" "bar/baz.clj"])]
46-
(is (= (str "/fake/repo\n"
46+
(is (= (str (h/file-path "/fake/repo") "\n"
4747
" bar\n"
4848
" baz.clj\n"
4949
" foo.clj\n")

0 commit comments

Comments
 (0)