Browse files

Adding test to ensure that header is disabled by default

  • Loading branch information...
1 parent 447ce82 commit 16e297ab61759f5e849aed909634d2aa4841c6a1 @TrevorBurnham TrevorBurnham committed Jan 10, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/compilation.coffee
View
4 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

0 comments on commit 16e297a

Please sign in to comment.