mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-07 18:39:57 +00:00
d9b6384884
Making the data widget render its raw JSON (introduced in 683ec33004
) was a bad idea as it messes up the innerwiki use of the data widget. Instead we use the testcase widget with a special template to render the raw JSON of the payload of a testcase, thus giving us a way to test the data widget
23 lines
607 B
Plaintext
23 lines
607 B
Plaintext
title: Data/ImportTiddler
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
description: Importing a payload tiddler and adding custom fields
|
|
|
|
title: Description
|
|
text: Importing a payload tiddler and adding custom fields
|
|
+
|
|
title: Output
|
|
|
|
\whitespace trim
|
|
<$testcase template="$:/core/ui/testcases/RawJSONTemplate">
|
|
<$data $tiddler="HelloThere" custom="Alpha"/>
|
|
</$testcase>
|
|
+
|
|
title: HelloThere
|
|
tags: Definitions
|
|
|
|
This is the tiddler HelloThere
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p><div>[{"title":"HelloThere","tags":"Definitions","text":"This is the tiddler HelloThere","custom":"Alpha"}]</div></p> |