Move mismatched block test from quint to parser tests.
This commit is contained in:
@@ -246,6 +246,7 @@ describe "Parser" do
|
||||
it "raises if there's a Parse error" do
|
||||
lambda { ast_for("{{foo}") }.should raise_error(V8::JSError, /Parse error on line 1/)
|
||||
lambda { ast_for("{{foo &}}")}.should raise_error(V8::JSError, /Parse error on line 1/)
|
||||
lambda { ast_for("{{#goodbyes}}{{/hellos}}") }.should raise_error(V8::JSError, /goodbyes doesn't match hellos/)
|
||||
end
|
||||
|
||||
it "knows how to report the correct line number in errors" do
|
||||
|
||||
@@ -202,14 +202,6 @@ test("empty block", function() {
|
||||
"Arrays ignore the contents when empty");
|
||||
});
|
||||
|
||||
test("incorrectly matched blocks", function() {
|
||||
var string = "{{#goodbyes}}{{/hellos}}";
|
||||
|
||||
shouldThrow(function() {
|
||||
Handlebars.compile(string);
|
||||
}, Handlebars.Exception, "Incorrectly matched blocks return an exception at compile time.");
|
||||
});
|
||||
|
||||
test("nested iteration", function() {
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user