diff --git a/test/core/compiler/compiler.js b/test/core/compiler/compiler.js index a3b76919..80dfb608 100644 --- a/test/core/compiler/compiler.js +++ b/test/core/compiler/compiler.js @@ -1,8 +1,8 @@ describe("Compiler", function() { - it("should compile whitespace in mustaches", function() { - var el = createTestElement("compilerMustacheWhitespace", '{{ msg }}'); + it("should compile whitespace in templates", function() { + var el = createTestElement("compilerTemplateWhitespace", '{{ msg }}'); var app = new Moon({ - root: "#compilerMustacheWhitespace", + root: "#compilerTemplateWhitespace", data: { msg: "Hello Moon!" } @@ -10,6 +10,13 @@ describe("Compiler", function() { expect(el.innerHTML).to.equal("Hello Moon!"); }); + it("should compile unclosed mustaches", function() { + createTestElement("compilerTemplateUnclosed", '{{msg'); + new Moon({ + root: "#compilerTemplateUnclosed", + }); + }); + it("should not compile comments", function() { var el = createTestElement("compilerComment", ''); var compilerCommentApp = new Moon({