From f1b5e3de0ce3662385793d197ccb54ef4e9901be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Tue, 27 Jan 2015 17:16:59 +0100 Subject: [PATCH] Add test for block defined with special end tag --- test/plugins.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/plugins.js b/test/plugins.js index ea226a9f8..9b9f58eb6 100644 --- a/test/plugins.js +++ b/test/plugins.js @@ -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 + ); + }); }); });