Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions test/fixtures/end_of_input.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
for label in @columnLabels
__out.push '\n <select>\n <option value=\'\'>\n Please select a form field label.\n </option>\n </select>\n\n '
if label
__out.push '\n <i class=\'column-alert\' title=\'one\'></i>\n '
else
__out.push '\n <i class=\'column-alert\' title=\'Values in this column will not\'></i>\n '
__out.push '\n'
__out.push '\n'
13 changes: 13 additions & 0 deletions test/fixtures/end_of_input.eco
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<% for label in @columnLabels: %>
<select>
<option value=''>
Please select a form field label.
</option>
</select>

<% if label: %>
<i class='column-alert' title='one'></i>
<% else: %>
<i class='column-alert' title='Values in this column will not'></i>
<% end %>
<% end %>
4 changes: 4 additions & 0 deletions test/test_compile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ module.exports =
test.ok eco.compile fixture("hello.eco")
test.done()

"compiling fixtures/end_of_input.eco": (test) ->
test.ok eco.compile fixture("end_of_input.eco")
test.done()

"compiling fixtures/projects.eco": (test) ->
test.ok eco.compile fixture("projects.eco")
test.done()
Expand Down
4 changes: 4 additions & 0 deletions test/test_preprocessor.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ module.exports =
test.same fixture("hello.coffee"), preprocess fixture("hello.eco")
test.done()

"preprocessing fixtures/end_of_input.eco": (test) ->
test.same fixture("end_of_input.coffee"), preprocess fixture("end_of_input.eco")
test.done()

"preprocessing fixtures/projects.eco": (test) ->
test.same fixture("projects.coffee"), preprocess fixture("projects.eco")
test.done()
Expand Down