mirror of https://github.com/logseq/logseq
Add test for custom.js to export_test.cljs
parent
2feddfe800
commit
2f091b4977
|
@ -97,6 +97,16 @@
|
|||
(str (fs/readFileSync "tmp/published-graph/static/css/export.css")))
|
||||
"export.css is copied correctly")))
|
||||
|
||||
(deftest-async create-export-with-js-files
|
||||
(create-static-dir "tmp/static")
|
||||
(create-logseq-graph "tmp/test-graph")
|
||||
(fs/writeFileSync "tmp/test-graph/logseq/custom.js" "// foo")
|
||||
|
||||
(p/let [_ (create-export "tmp/static" "tmp/test-graph" "tmp/published-graph" {})]
|
||||
(is (= "// foo"
|
||||
(str (fs/readFileSync "tmp/published-graph/static/js/custom.js")))
|
||||
"custom.js is copied correctly")))
|
||||
|
||||
(deftest-async create-export-with-assets
|
||||
(create-static-dir "tmp/static")
|
||||
(create-logseq-graph "tmp/test-graph")
|
||||
|
|
Loading…
Reference in New Issue