diff options
Diffstat (limited to 'test/plugins.js')
-rw-r--r-- | test/plugins.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/plugins.js b/test/plugins.js index 0f826d2..3c60a20 100644 --- a/test/plugins.js +++ b/test/plugins.js @@ -117,5 +117,15 @@ describe('Plugins', function () { done ); }); + + it('should correctly extend template blocks with different sub-blocks', function(done) { + qdone( + books[0].template.renderString('{% test4join separator=";" %}hello{% also %}the{% finally %}world{% endtest4join %}') + .then(function(content) { + assert.equal(content, "hello;the;world"); + }), + done + ); + }); }); }); |