diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-25 14:17:31 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-25 14:17:31 +0100 |
commit | 9215edc0a08e909763bae67ce7babb46fe655a4d (patch) | |
tree | 3797f331793a76b838b8e04777472676b63d3ecc /test/node_modules/gitbook-plugin-test-hooks | |
parent | 25ae21dae35e42268be28d9efa7f8175841c7dcc (diff) | |
download | gitbook-9215edc0a08e909763bae67ce7babb46fe655a4d.zip gitbook-9215edc0a08e909763bae67ce7babb46fe655a4d.tar.gz gitbook-9215edc0a08e909763bae67ce7babb46fe655a4d.tar.bz2 |
Remove option defaultPlugins and simplify loading
Diffstat (limited to 'test/node_modules/gitbook-plugin-test-hooks')
-rw-r--r-- | test/node_modules/gitbook-plugin-test-hooks/index.js | 16 | ||||
-rw-r--r-- | test/node_modules/gitbook-plugin-test-hooks/package.json | 7 |
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 |