Skip to content

Commit

Permalink
Move type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmacdonald committed May 24, 2024
1 parent b5ad21b commit 7035bb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/marginalia/test/helpers.clj
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
[dir]
(seq (.listFiles (io/file dir))))

(defn ^File test-project
(defn test-project
"Returns a file object pointed at the given test project's directory"
[project-name]
(io/file "test_projects" project-name))

(defmacro in-project
"Runs `body` in the context of the given test project"
[project-name & body]
`(binding [marginalia/*working-directory* ~(.getAbsolutePath (test-project project-name))]
`(binding [marginalia/*working-directory* ~(.getAbsolutePath ^File (test-project project-name))]
~@body))

(defmacro with-project
Expand Down

0 comments on commit 7035bb3

Please sign in to comment.