UNPKG

express-dustjs

Version:
67 lines (65 loc) 2.48 kB
<!doctype html> <html lang="en"> <head> <title>Code coverage report for express-dustjs/example/helpers/upper.js</title> <meta charset="utf-8"> <link rel="stylesheet" href="../../../prettify.css"> <link rel="stylesheet" href="../../../base.css"> <style type='text/css'> div.coverage-summary .sorter { background-image: url(../../../sort-arrow-sprite.png); } </style> </head> <body> <div class="header high"> <h1>Code coverage report for <span class="entity">express-dustjs/example/helpers/upper.js</span></h1> <h2> Statements: <span class="metric">100% <small>(4 / 4)</small></span> &nbsp;&nbsp;&nbsp;&nbsp; Branches: <span class="metric">100% <small>(0 / 0)</small></span> &nbsp;&nbsp;&nbsp;&nbsp; Functions: <span class="metric">100% <small>(1 / 1)</small></span> &nbsp;&nbsp;&nbsp;&nbsp; Lines: <span class="metric">100% <small>(4 / 4)</small></span> &nbsp;&nbsp;&nbsp;&nbsp; Ignored: <span class="metric"><span class="ignore-none">none</span></span> &nbsp;&nbsp;&nbsp;&nbsp; </h2> <div class="path"><a href="../../../index.html">All files</a> &#187; <a href="index.html">express-dustjs/example/helpers/</a> &#187; upper.js</div> </div> <div class="body"> <pre><table class="coverage"> <tr><td class="line-count">1 2 3 4 5 6 7 8</td><td class="line-coverage"><span class="cline-any cline-yes">1</span> <span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-yes">1</span> <span class="cline-any cline-yes">6</span> <span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-yes">6</span> <span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">var dust = require('../../')._ &nbsp; dust.helpers.upper = function (chunk, ctx, bodies, params) { var sentence = dust.helpers.tap(params.value, chunk, ctx) &nbsp; return chunk.w(sentence.toUpperCase()) } &nbsp;</pre></td></tr> </table></pre> </div> <div class="footer"> <div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Jun 16 2021 18:44:31 GMT+0800 (CST)</div> </div> <script src="../../../prettify.js"></script> <script> window.onload = function () { if (typeof prettyPrint === 'function') { prettyPrint(); } }; </script> <script src="../../../sorter.js"></script> </body> </html>