summaryrefslogtreecommitdiffstats
path: root/test/node_modules/gitbook-plugin-test-blocks
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-26 09:41:26 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-26 09:41:26 +0100
commitd3d64f636c859f7f01a64f7774cf70bd8ccdc562 (patch)
tree4f7731f37c3a793d187b0ab1cd77680e69534c6c /test/node_modules/gitbook-plugin-test-blocks
parent4cb9cbb5ae3aa8f9211ffa3ac5e3d34232c0ca4f (diff)
parenteef072693b17526347c37b66078a5059c71caa31 (diff)
downloadgitbook-d3d64f636c859f7f01a64f7774cf70bd8ccdc562.zip
gitbook-d3d64f636c859f7f01a64f7774cf70bd8ccdc562.tar.gz
gitbook-d3d64f636c859f7f01a64f7774cf70bd8ccdc562.tar.bz2
Merge pull request #1109 from GitbookIO/3.0.0
Version 3.0.0
Diffstat (limited to 'test/node_modules/gitbook-plugin-test-blocks')
-rw-r--r--test/node_modules/gitbook-plugin-test-blocks/index.js21
-rw-r--r--test/node_modules/gitbook-plugin-test-blocks/package.json7
2 files changed, 28 insertions, 0 deletions
diff --git a/test/node_modules/gitbook-plugin-test-blocks/index.js b/test/node_modules/gitbook-plugin-test-blocks/index.js
new file mode 100644
index 0000000..7104006
--- /dev/null
+++ b/test/node_modules/gitbook-plugin-test-blocks/index.js
@@ -0,0 +1,21 @@
+var should = require('should');
+
+module.exports = {
+ blocks: {
+ // Simple test
+ hello: function(blk) {
+ return 'Hello ' + blk.body + '!';
+ },
+
+ // Test using the conetxt "this"
+ testContext: function(s) {
+ this.should.have.property('config');
+ this.should.have.property('log');
+ this.should.have.property('options');
+ this.should.have.property('resolve').which.is.a.function;
+ this.should.have.property('book').which.equal(this);
+
+ return 'Hello ' + s + '!';
+ }
+ }
+};
diff --git a/test/node_modules/gitbook-plugin-test-blocks/package.json b/test/node_modules/gitbook-plugin-test-blocks/package.json
new file mode 100644
index 0000000..a756fb5
--- /dev/null
+++ b/test/node_modules/gitbook-plugin-test-blocks/package.json
@@ -0,0 +1,7 @@
+{
+ "name": "gitbook-plugin-test-blocks",
+ "version": "1.0.0",
+ "engines": {
+ "gitbook": "*"
+ }
+} \ No newline at end of file