Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Jun 15, 2023
1 parent 5470678 commit bccf588
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions deps/graph-parser/test/logseq/graph_parser/mldoc_test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,15 @@ body"
(is ["@tag" "tag1" "tag2"] (sort (:filetags props)))
(is ["@tag" "tag1" "tag2" "tag3"] (sort (:tags props))))))

(deftest remove-indentation-spaces
(testing "Remove indentations for every line"
(let [s "block 1.1
line 1
line 2
line 3
line 4"]
(= (gp-mldoc/remove-indentation-spaces s 2 false) "block 1.1\n line 1\n line 2\nline 3\nline 4"))))

(deftest ^:integration test->edn
(let [graph-dir "test/docs-0.9.2"
_ (docs-graph-helper/clone-docs-repo-if-not-exists graph-dir "v0.9.2")
Expand Down

0 comments on commit bccf588

Please sign in to comment.