File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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"
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 " )
You can’t perform that action at this time.
0 commit comments