Microdown icon indicating copy to clipboard operation
Microdown copied to clipboard

testConvertMicStringToDoc is weak

Open bourahma opened this issue 3 years ago • 0 comments

if the method asHTMLString returns a ' hhh ' it will pass.

testConvertMicStringToDoc

	| expectedHtmlDoc |
	
	expectedHtmlDoc := Microdown asHTMLString: MicMicrodownSnippetFactory buildDocument.
	self 
		assert: (expectedHtmlDoc isKindOf: String)
		description: 'It tests that result is a String object'.
	self 
		deny: expectedHtmlDoc isEmpty 
		description: 'It test that result is not empty'.
		
	"parsedContents := (XMLHTMLParser on: expectedHtmlDoc contents) parseDocument.
	#('code' 'i' 'a' 'pre' 'strike' 'table' 'ul' 'p') do: [ : tag |
		self
			assert: ((parsedContents descendantElementsNamed: tag) elementNames notEmpty)
			description: 'It test that result contains the expected document tag' ]"`

bourahma avatar Oct 27 '22 08:10 bourahma