diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-07-09 20:14:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-09 20:14:05 -0400 |
commit | 7a1570885e7310e5b1e15ab798c9eb66694a96fb (patch) | |
tree | b44ee8498a55a0ab3866e0bd67600283d6fbae29 /test | |
parent | 22f048e527552cf0451ea03e0e9bd869b6ad240b (diff) |
Simplify get media structure (#1817)
* Remove format argument of getMedia
* Implement escaping
Diffstat (limited to 'test')
-rw-r--r-- | test/test-options-util.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test-options-util.js b/test/test-options-util.js index d4a3bf9a..5c411c23 100644 --- a/test/test-options-util.js +++ b/test/test-options-util.js @@ -992,24 +992,24 @@ async function testFieldTemplatesUpdate(extDir) { expected: ` {{#*inline "audio"}} {{~#if (hasMedia "audio")~}} - [sound:{{#getMedia "audio" format="fileName"}}{{/getMedia}}] + [sound:{{#getMedia "audio"}}{{/getMedia}}] {{~/if~}} {{/inline}} {{#*inline "screenshot"}} {{~#if (hasMedia "screenshot")~}} - <img src="{{#getMedia "screenshot" format="fileName"}}{{/getMedia}}" /> + <img src="{{#getMedia "screenshot"}}{{/getMedia}}" /> {{~/if~}} {{/inline}} {{#*inline "clipboard-image"}} {{~#if (hasMedia "clipboardImage")~}} - <img src="{{#getMedia "clipboardImage" format="fileName"}}{{/getMedia}}" /> + <img src="{{#getMedia "clipboardImage"}}{{/getMedia}}" /> {{~/if~}} {{/inline}} {{#*inline "clipboard-text"}} - {{~#if (hasMedia "clipboardText")}}{{#getMedia "clipboardText" format="text"}}{{/getMedia}}{{/if~}} + {{~#if (hasMedia "clipboardText")}}{{#getMedia "clipboardText"}}{{/getMedia}}{{/if~}} {{/inline}} <<<UPDATE-ADDITIONS>>> |