diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-27 21:47:14 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-27 21:47:14 +0100 |
commit | bc389ab4a1ea9013a869c0b33162fb67bb0d0708 (patch) | |
tree | fd1904c5fc59495190e7b8f4035519dbe642873d /test/plugins.js | |
parent | cf12d090928907bb82c9f1796b642cbef9b42640 (diff) | |
download | gitbook-bc389ab4a1ea9013a869c0b33162fb67bb0d0708.zip gitbook-bc389ab4a1ea9013a869c0b33162fb67bb0d0708.tar.gz gitbook-bc389ab4a1ea9013a869c0b33162fb67bb0d0708.tar.bz2 |
Improve tests on blocks extensions
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 + ); + }); }); }); |