mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 18:06:32 +00:00
fix: graph-parser cljs tests
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
(ns ^:node-only logseq.graph-parser.exporter-test
|
||||
(:require ["fs" :as fs]
|
||||
["fs/promises" :as fsp]
|
||||
["path" :as node-path]
|
||||
[cljs.test :refer [are deftest is testing]]
|
||||
[clojure.set :as set]
|
||||
@@ -130,7 +129,8 @@
|
||||
(let [abs-path (if (node-path/isAbsolute path)
|
||||
path
|
||||
(node-path/resolve file-graph-dir path))]
|
||||
(fsp/stat abs-path)))
|
||||
;; inline require to allow cljs tests to run
|
||||
(.stat (js/require "fs/promises") abs-path)))
|
||||
:<read-and-copy-asset (fn [file *assets buffer-handler]
|
||||
(<read-and-copy-asset file *assets buffer-handler assets))}
|
||||
(select-keys options [:verbose]))]
|
||||
|
||||
Reference in New Issue
Block a user