mirror of
https://github.com/journeyman-cc/smeagol.git
synced 2026-04-12 18:05:06 +00:00
implemented includes-resolving for tests
This commit is contained in:
parent
6768d71429
commit
07342b5ac4
1 changed files with 27 additions and 2 deletions
|
|
@ -44,7 +44,15 @@ more text.")
|
||||||
[resolver
|
[resolver
|
||||||
uri :- s/Str]
|
uri :- s/Str]
|
||||||
(cond
|
(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
|
(def system-under-test
|
||||||
(component/start
|
(component/start
|
||||||
|
|
@ -64,4 +72,21 @@ more text.")
|
||||||
Simple content."
|
Simple content."
|
||||||
(sut/expand-include-md
|
(sut/expand-include-md
|
||||||
(:includer system-under-test)
|
(: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)))))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue