Updated test. Need to improve on Internet line endings.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2020-11-21 14:15:38 -05:00
parent ffeeff423b
commit 72098ee5b9
2 changed files with 20 additions and 6 deletions

View File

@ -28,7 +28,7 @@ BreaPageTest >> createHTMLTemplateFile [
<p>
{{#unhide}} You should not see me. {{/unhide}}
</p>
{{ contents }}
{{{ contents }}}
</body>
</html>'.
@ -86,12 +86,14 @@ BreaPageTest >> htmlOutput [
<body>
<h1>This is a test</h1>
<p>
You should see me.
You should see me.
</p>
<p>
</p>',
self htmlBodyContents,
'</body>
</p>
', self htmlBodyContents,
'
</body>
</html>'
]
@ -149,6 +151,19 @@ BreaPageTest >> testMarkdownContentExtraction [
self assert: page contents equals: self markdownTestFile contents.
]
{ #category : #tests }
BreaPageTest >> testMarkdownHTMLExport [
| page |
page := BreaPage new.
page
shortName: 'test';
folder: FileLocator temp;
template: 'template.mus.html';
bodyTag: 'contents'.
self assert: (page exportAsHTML contents) equals: self htmlOutput.
]
{ #category : #tests }
BreaPageTest >> testMarkdownMetadataExtraction [

View File

@ -82,7 +82,6 @@ BreaPage >> exportAsHTML [
actionsArray := actionsArray copyWith: [ self populateBodyAs: self bodyTag ] future ].
allActions := TKTFuture all: actionsArray.
semaphore := Semaphore new.
"self halt."
allActions onSuccessDo: [ :values |
result := values last.
semaphore signal.