summaryrefslogtreecommitdiffstats
path: root/test/node_modules/gitbook-plugin-test-hooks
diff options
context:
space:
mode:
Diffstat (limited to 'test/node_modules/gitbook-plugin-test-hooks')
-rw-r--r--test/node_modules/gitbook-plugin-test-hooks/index.js16
-rw-r--r--test/node_modules/gitbook-plugin-test-hooks/package.json7
2 files changed, 23 insertions, 0 deletions
diff --git a/test/node_modules/gitbook-plugin-test-hooks/index.js b/test/node_modules/gitbook-plugin-test-hooks/index.js
new file mode 100644
index 0000000..c0666ca
--- /dev/null
+++ b/test/node_modules/gitbook-plugin-test-hooks/index.js
@@ -0,0 +1,16 @@
+var should = require('should');
+
+module.exports = {
+ hooks: {
+ 'init': function() {
+ global._hooks = [];
+ global._hooks.push('init');
+ },
+ 'finish': function() {
+ global._hooks.push('finish');
+ },
+ 'finish:before': function() {
+ global._hooks.push('finish:before');
+ }
+ }
+};
diff --git a/test/node_modules/gitbook-plugin-test-hooks/package.json b/test/node_modules/gitbook-plugin-test-hooks/package.json
new file mode 100644
index 0000000..adb12a8
--- /dev/null
+++ b/test/node_modules/gitbook-plugin-test-hooks/package.json
@@ -0,0 +1,7 @@
+{
+ "name": "gitbook-plugin-test-hooks",
+ "version": "1.0.0",
+ "engines": {
+ "gitbook": "*"
+ }
+} \ No newline at end of file