Add test for block defined with special end tag

This commit is contained in:
Samy Pessé
2015-01-27 17:16:59 +01:00
parent 0e0a23b794
commit f1b5e3de0c
+10
View File
@@ -97,5 +97,15 @@ describe('Plugins', function () {
done
);
});
it('should correctly extend template blocks with defined end', function(done) {
qdone(
books[0].template.renderString('{% test2 %}hello{% endtest2end %}')
.then(function(content) {
assert.equal(content, "test2hellotest2");
}),
done
);
});
});
});