Skip to content
Myr

Refactoring some spec fixtures

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent cb8e704 · Browse files · 2 files+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−3 removed

  • tests:+3 added−3 removed

2 files+3 added−3 removed

modified:spec/fixtures/partials/article.html.ejs+1 added-1 removed
1 unmodified line
2 <% if (__isFirst__) { %>3 <li class="first"><%= article %></li>4 <% } else if (__isLast__) { %>5 <li class="last"><%= article %></li>6 <% } else if (!__isLast__ && !__isFirst__) { %>6 <% } else { %>7 <li class="<%= __index__ %>"><%= article %></li>8 <% } %>9</ul>
modified:spec/fixtures/list.html.ejs+2 added-2 removed
1<ul>2 <% for (idx in items) { %>3 <%= this.partial("item.html.ejs", { locals: { item: items[idx] }}) %>2 <% for (var i in items) { %>3 <%= this.partial("item.html.ejs", { locals: { item: items[i] }}) %>4 <% } %>5</ul>