Skip to content

Commit

Permalink
test: Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidz committed Feb 7, 2024
1 parent 53c8ca1 commit c1cac0b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/elin/util/file_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@

(t/deftest find-file-in-parent-directories-test
(t/testing "README"
(t/is (= "= vim-elin"
(-> (sut/find-file-in-parent-directories "README.adoc")
(slurp)
(str/split-lines)
(first))))
(t/is (= "= vim-elin"
(-> (sut/find-file-in-parent-directories "./src" "README.adoc")
(slurp)
(str/split-lines)
(first)))))
(t/is (-> (sut/find-file-in-parent-directories "README.adoc")
(slurp)
(str/split-lines)
(first)
(str/includes? "vim-elin")))
(t/is (-> (sut/find-file-in-parent-directories "./src" "README.adoc")
(slurp)
(str/split-lines)
(first)
(str/includes? "vim-elin"))))

(t/testing "Not found"
(t/is (nil? (sut/find-file-in-parent-directories (str "non-existing" (random-uuid)))))))
Expand Down

0 comments on commit c1cac0b

Please sign in to comment.