Split the tests for clarity

This commit is contained in:
Jeremy Ruston
2026-01-23 23:05:05 +00:00
parent a14cd291ac
commit f29de0cb44
2 changed files with 20 additions and 2 deletions

View File

@@ -9,11 +9,10 @@ title: Output
<!-- Map <p> to <div>, adding the class my-class -->
\define tv-map-p() div
\define tv-map-p-class() my-class
This is a paragraph
+
title: ExpectedResult
<div class="my-class" data-element-mapping-from="p">This is a paragraph</div>
<div data-element-mapping-from="p">This is a paragraph</div>

View File

@@ -0,0 +1,19 @@
title: ElementMapping/BasicWithClass
description: Mapping one element to another with an added class
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]
title: Output
\whitespace trim
<!-- Map <p> to <div>, adding the class my-class -->
\define tv-map-p() div
\define tv-map-p-class() my-class
This is a paragraph
+
title: ExpectedResult
<div class="my-class" data-element-mapping-from="p">This is a paragraph</div>