summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/plugins.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/plugins.js b/test/plugins.js
index ea226a9..9b9f58e 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
+ );
+ });
});
});