Files
MapLibreParticleLab/metrics/integration/expression-tests/result_item.html.tmpl
2023-03-25 14:46:49 +01:00

17 lines
600 B
Cheetah

<div class="test <%- r.status %> <%- (hasFailedTests && /passed/.test(r.status) || /ignored/.test(r.status)) ? 'hide' : '' %>">
<h2><span class="label" style="background: <%- r.color %>"><%- r.status %></span> <%- r.id %></h2>
<pre><%- r.expression %></pre>
<% if (r.error) { %><p style="color: red"><strong>Error:</strong> <%- r.error.message %></p><% } %>
<% if (r.difference) { %>
<strong>Difference:</strong>
<pre><%- r.difference %></pre>
<% } %>
<% if (r.serialized) { %>
<strong>Serialized:</strong>
<pre><%- r.serialized %></pre>
<% } %>
</div>