summaryrefslogtreecommitdiffstats
path: root/test/plugins.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/plugins.js')
-rw-r--r--test/plugins.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/plugins.js b/test/plugins.js
index 3c60a20..43ce497 100644
--- a/test/plugins.js
+++ b/test/plugins.js
@@ -98,6 +98,16 @@ describe('Plugins', function () {
);
});
+ it('should correctly accept shortcuts', function(done) {
+ qdone(
+ books[0].template.renderString('$$hello$$')
+ .then(function(content) {
+ assert.equal(content, "testhellotest");
+ }),
+ done
+ );
+ });
+
it('should correctly extend template blocks with defined end', function(done) {
qdone(
books[0].template.renderString('{% test2 %}hello{% endtest2end %}')