summaryrefslogtreecommitdiffstats
path: root/test/plugins/blocks/index.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-27 16:04:49 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-27 16:04:49 +0100
commitd9329295d60a94a02719869f58abdc3da3535190 (patch)
tree9aeb7b992012a301e34dae87c5bad7b31ca36333 /test/plugins/blocks/index.js
parent750fb862d4e2d68cb65122c85743c0957ca3a3f1 (diff)
downloadgitbook-d9329295d60a94a02719869f58abdc3da3535190.zip
gitbook-d9329295d60a94a02719869f58abdc3da3535190.tar.gz
gitbook-d9329295d60a94a02719869f58abdc3da3535190.tar.bz2
Add test for extending template blocks
Diffstat (limited to 'test/plugins/blocks/index.js')
-rw-r--r--test/plugins/blocks/index.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/plugins/blocks/index.js b/test/plugins/blocks/index.js
new file mode 100644
index 0000000..6415ec0
--- /dev/null
+++ b/test/plugins/blocks/index.js
@@ -0,0 +1,15 @@
+module.exports = {
+ blocks: {
+ "test": {
+ process: function(body, args, kwargs) {
+ return "test"+body+"test";
+ }
+ },
+ "test2": {
+ end: "endtest2end",
+ process: function(body, args, kwargs) {
+ return "test2"+body+"test2";
+ }
+ }
+ }
+}; \ No newline at end of file