diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-03-23 23:18:15 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-03-23 23:18:15 +0100 |
commit | 2d1aa15af8ee73f7179e323493ab4f6c40f6ac57 (patch) | |
tree | a71b44c602077c411b77cad554b0b47840294cfd /test/plugins/blocks | |
parent | 63ee94ff89d10e56d82079183c494f8129b92eae (diff) | |
download | gitbook-2d1aa15af8ee73f7179e323493ab4f6c40f6ac57.zip gitbook-2d1aa15af8ee73f7179e323493ab4f6c40f6ac57.tar.gz gitbook-2d1aa15af8ee73f7179e323493ab4f6c40f6ac57.tar.bz2 |
New cleaner helper for testing
Diffstat (limited to 'test/plugins/blocks')
-rw-r--r-- | test/plugins/blocks/index.js | 41 | ||||
-rw-r--r-- | test/plugins/blocks/package.json | 9 |
2 files changed, 0 insertions, 50 deletions
diff --git a/test/plugins/blocks/index.js b/test/plugins/blocks/index.js deleted file mode 100644 index 32f1910..0000000 --- a/test/plugins/blocks/index.js +++ /dev/null @@ -1,41 +0,0 @@ -var assert = require("assert"); - -module.exports = { - blocks: { - "test": { - shortcuts: { - parsers: ["markdown"], - start: "$$", - end: "$$" - }, - process: function(blk) { - return "test"+blk.body+"test"; - } - }, - "test2": { - end: "endtest2end", - process: function(blk) { - return "test2"+blk.body+"test2"; - } - }, - "test3join": { - blocks: [ - "also" - ], - process: function(blk) { - return [blk.body, blk.blocks[0].body].join(blk.kwargs.separator); - } - }, - "test4join": { - blocks: [ - "also", "finally" - ], - process: function(blk) { - assert(blk.blocks.length, 2); - assert(blk.blocks[0].name, "also"); - assert(blk.blocks[1].name, "finally"); - return [blk.body, blk.blocks[0].body, blk.blocks[1].body].join(blk.kwargs.separator); - } - } - } -};
\ No newline at end of file diff --git a/test/plugins/blocks/package.json b/test/plugins/blocks/package.json deleted file mode 100644 index 7c41fd3..0000000 --- a/test/plugins/blocks/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "gitbook-plugin-blocks", - "description": "Test blocks", - "main": "index.js", - "version": "0.0.1", - "engines": { - "gitbook": "*" - } -}
\ No newline at end of file |