Skip to content

Commit 298255a

Browse files
committed
Fix tests
1 parent aa90fc4 commit 298255a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/eca/features/rules_test.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
fs/exists? (constantly true)
3838
fs/list-dir (constantly [])
3939
fs/canonicalize identity
40-
fs/file-name (fn [p] (last (string/split (str p) #"/")))
40+
fs/file-name (fn [p] (last (string/split (str p) (re-pattern fs/file-separator))))
4141
clojure.core/slurp (constantly "MY_RULE_CONTENT")]
4242
(let [config {:rules [{:path ".foo/cool-rule.md"}]}
4343
roots [{:uri (h/file-uri "file:///my/project")}]]

0 commit comments

Comments
 (0)