diff options
Diffstat (limited to 'spec/qunit_spec.js')
-rw-r--r-- | spec/qunit_spec.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/qunit_spec.js b/spec/qunit_spec.js index 65100e0..56cb687 100644 --- a/spec/qunit_spec.js +++ b/spec/qunit_spec.js @@ -518,6 +518,10 @@ test("if", function() { "if with boolean argument does not show the contents when false"); shouldCompileTo(string, {world: "world"}, "cruel world!", "if with undefined does not show the contents"); + shouldCompileTo(string, {goodbye: ['foo'], world: "world"}, "GOODBYE cruel world!", + "if with non-empty array shows the contents"); + shouldCompileTo(string, {goodbye: [], world: "world"}, "cruel world!", + "if with empty array does not show the contents"); }); test("each", function() { |