From 7035bb3b0aeb8636d51e124b10ad0e7f893a05d6 Mon Sep 17 00:00:00 2001 From: Tim Macdonald Date: Fri, 24 May 2024 15:48:31 +0100 Subject: [PATCH] Move type hint --- test/marginalia/test/helpers.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/marginalia/test/helpers.clj b/test/marginalia/test/helpers.clj index 2d1d036d..0a8151f4 100644 --- a/test/marginalia/test/helpers.clj +++ b/test/marginalia/test/helpers.clj @@ -31,7 +31,7 @@ [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)) @@ -39,7 +39,7 @@ (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