mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
Adding test to ensure that header is disabled by default
This commit is contained in:
parent
447ce82721
commit
16e297ab61
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,10 @@ test "header (#1778)", ->
|
||||||
header = "// Generated by CoffeeScript #{CoffeeScript.VERSION}\n"
|
header = "// Generated by CoffeeScript #{CoffeeScript.VERSION}\n"
|
||||||
eq 0, CoffeeScript.compile('x = y', header: on).indexOf header
|
eq 0, CoffeeScript.compile('x = y', header: on).indexOf header
|
||||||
|
|
||||||
|
test "header is disabled by default", ->
|
||||||
|
header = "// Generated by CoffeeScript #{CoffeeScript.VERSION}\n"
|
||||||
|
eq -1, CoffeeScript.compile('x = y').indexOf header
|
||||||
|
|
||||||
test "multiple generated references", ->
|
test "multiple generated references", ->
|
||||||
a = {b: []}
|
a = {b: []}
|
||||||
a.b[true] = -> this == a.b
|
a.b[true] = -> this == a.b
|
||||||
|
|
Loading…
Add table
Reference in a new issue