summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-27 22:34:48 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-27 22:34:48 +0100
commitd1b295099320eeb66c615737ee73c746eb7bb0dc (patch)
treead2da6b1f0a71689448cd8c8b2961da3d327d224 /test
parentd8995200e6802f77de1f0e3699e208695c89b95e (diff)
downloadgitbook-d1b295099320eeb66c615737ee73c746eb7bb0dc.zip
gitbook-d1b295099320eeb66c615737ee73c746eb7bb0dc.tar.gz
gitbook-d1b295099320eeb66c615737ee73c746eb7bb0dc.tar.bz2
Check parser used before applying template shortcuts
Diffstat (limited to 'test')
-rw-r--r--test/plugins.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/plugins.js b/test/plugins.js
index 43ce497..78f5b44 100644
--- a/test/plugins.js
+++ b/test/plugins.js
@@ -100,7 +100,9 @@ describe('Plugins', function () {
it('should correctly accept shortcuts', function(done) {
qdone(
- books[0].template.renderString('$$hello$$')
+ books[0].template.renderString('$$hello$$', {}, {
+ type: "markdown"
+ })
.then(function(content) {
assert.equal(content, "testhellotest");
}),