diff options
Diffstat (limited to 'test/plugins')
-rw-r--r-- | test/plugins/blocks/index.js | 15 | ||||
-rw-r--r-- | test/plugins/blocks/package.json | 9 |
2 files changed, 24 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 diff --git a/test/plugins/blocks/package.json b/test/plugins/blocks/package.json new file mode 100644 index 0000000..7c41fd3 --- /dev/null +++ b/test/plugins/blocks/package.json @@ -0,0 +1,9 @@ +{ + "name": "gitbook-plugin-blocks", + "description": "Test blocks", + "main": "index.js", + "version": "0.0.1", + "engines": { + "gitbook": "*" + } +}
\ No newline at end of file |