summaryrefslogtreecommitdiffstats
path: root/test/plugins/blocks/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/plugins/blocks/index.js')
-rw-r--r--test/plugins/blocks/index.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/plugins/blocks/index.js b/test/plugins/blocks/index.js
index 0f5fb87..f2c588a 100644
--- a/test/plugins/blocks/index.js
+++ b/test/plugins/blocks/index.js
@@ -1,22 +1,22 @@
module.exports = {
blocks: {
"test": {
- process: function(args) {
- return "test"+args.body+"test";
+ process: function(blk) {
+ return "test"+blk.body+"test";
}
},
"test2": {
end: "endtest2end",
- process: function(args) {
- return "test2"+args.body+"test2";
+ process: function(blk) {
+ return "test2"+blk.body+"test2";
}
},
"test3join": {
blocks: [
"also"
],
- process: function(args) {
- return "test";
+ process: function(blk) {
+ return [blk.body, blk.blocks[0].body].join(blk.kwargs.separator);
}
}
}