summaryrefslogtreecommitdiffstats
path: root/test/node_modules/gitbook-plugin-test-hooks/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/node_modules/gitbook-plugin-test-hooks/index.js')
-rw-r--r--test/node_modules/gitbook-plugin-test-hooks/index.js16
1 files changed, 16 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');
+ }
+ }
+};