diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-27 21:21:01 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-27 21:21:01 +0100 |
commit | 8e18adbe4cd64b8d6baf63627cba4109774fc7e5 (patch) | |
tree | e757c0449976867a0923d94f429f9cc11c87a817 /test/plugins.js | |
parent | f1b5e3de0ce3662385793d197ccb54ef4e9901be (diff) | |
download | gitbook-8e18adbe4cd64b8d6baf63627cba4109774fc7e5.zip gitbook-8e18adbe4cd64b8d6baf63627cba4109774fc7e5.tar.gz gitbook-8e18adbe4cd64b8d6baf63627cba4109774fc7e5.tar.bz2 |
Parse correctly list of blocks and args
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 9b9f58e..560a779 100644 --- a/test/plugins.js +++ b/test/plugins.js @@ -107,5 +107,15 @@ describe('Plugins', function () { done ); }); + + it('should correctly extend template blocks with sub-blocks', function(done) { + qdone( + books[0].template.renderString('{% test3join %}hello{% also %}the{% also %}world{% endtest3join %}') + .then(function(content) { + assert.equal(content, "hello the world"); + }), + done + ); + }); }); }); |