Skip to content

Commit

Permalink
Fix function name
Browse files Browse the repository at this point in the history
  • Loading branch information
julienvincent committed Jan 19, 2024
1 parent 5ba13c1 commit abf0368
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions packages/mallard/src/k16/mallard/loaders/fs.clj
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@
file-seq
(filter #(.isFile ^java.io.File %))
(filter #(str/ends-with? (.getName ^java.io.File %) ".clj"))
(map (fn [file]
{:path (.getPath ^java.io.File file)
:namespace (file->ns file)}))
(sort-by :path)
(map file->ns)
sort
vec))

(defmacro load-migration-files!
(defmacro load-migrations!
"Given a file or resource directory path attempt to load all files found within as migrations.
This is implemented as a macro to allow preloading migrations during native-image compilation. This
Expand Down
2 changes: 1 addition & 1 deletion packages/mallard/test/k16/mallard/loaders/fs_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

(deftest fs-loader-test
(testing "It should load migrations from disk in the correct order"
(let [migrations (loaders.fs/load-migrations! "test/fixtures/migrations")]
(let [migrations (loaders.fs/load-migrations! "fixtures/migrations")]
(is (match? [{:id "1-migration"
:run-up! (requiring-resolve 'fixtures.migrations.1-migration/run-up!)
:run-down! (requiring-resolve 'fixtures.migrations.1-migration/run-down!)}
Expand Down

0 comments on commit abf0368

Please sign in to comment.