implemented includes-resolving for tests

This commit is contained in:
jem 2018-05-18 17:13:33 +02:00
parent 6768d71429
commit 07342b5ac4

View file

@ -44,7 +44,15 @@ more text.")
[resolver
uri :- s/Str]
(cond
(= uri "./simple.md") "Simple content."))
(= uri "./simple.md") "Simple content."
(= uri "./with-heading-and-list.md") "# Heading2
some text
* List
## Heading 3
more text"))
(def system-under-test
(component/start
@ -64,4 +72,21 @@ more text.")
Simple content."
(sut/expand-include-md
(:includer system-under-test)
include-simple)))))
include-simple)))
(is
(= "# Heading1
Some surounding Simple content. text"
(sut/expand-include-md
(:includer system-under-test)
include-surounding-simple)))
(is
(= "# Heading1
# Heading2
some text
* List
## Heading 3
more text"
(sut/expand-include-md
(:includer system-under-test)
include-heading-list-0)))))