diff --git a/test/compilation.coffee b/test/compilation.coffee index 8ea599cb..4b8397ae 100644 --- a/test/compilation.coffee +++ b/test/compilation.coffee @@ -17,6 +17,10 @@ test "header (#1778)", -> header = "// Generated by CoffeeScript #{CoffeeScript.VERSION}\n" 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", -> a = {b: []} a.b[true] = -> this == a.b