Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
RCmerci authored and tiensonqin committed Mar 20, 2023
1 parent e54d739 commit 6fae1a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/frontend/handler/export_test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
(p/do!
(are [expect block-uuid-s]
(= expect
(export-text/export-blocks-as-markdown (state/get-current-repo) [(uuid block-uuid-s)] {}))
(export-text/export-blocks-as-markdown (state/get-current-repo) [(uuid block-uuid-s)]
{:remove-options #{:property}}))
"- 1\n\t- 2\n\t\t- 3\n\t\t- 3\n"
"61506710-484c-46d5-9983-3d1651ec02c8"

Expand All @@ -48,7 +49,7 @@
(p/do!
(are [expect files]
(= expect
(@#'export-text/export-files-as-markdown files nil))
(@#'export-text/export-files-as-markdown files {:remove-options #{:property}}))
[["pages/page1.md" "- 1\n\t- 2\n\t\t- 3\n\t\t- 3\n- 4\n"]]
[{:path "pages/page1.md" :content (:file/content (nth test-files 0)) :names ["page1"] :format :markdown}]

Expand Down

0 comments on commit 6fae1a8

Please sign in to comment.