diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-10-13 14:31:11 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-10-13 14:31:11 +0200 |
commit | b742b29259aced60ec03d5577da96a2c7f2e1277 (patch) | |
tree | d8582baaf807233856fd2958664f7be45a03dc14 /test/plugins | |
parent | df5d27ab6103389294795a7fada76d46f36fc00f (diff) | |
download | gitbook-b742b29259aced60ec03d5577da96a2c7f2e1277.zip gitbook-b742b29259aced60ec03d5577da96a2c7f2e1277.tar.gz gitbook-b742b29259aced60ec03d5577da96a2c7f2e1277.tar.bz2 |
Add tests for plugins config validation
Diffstat (limited to 'test/plugins')
-rw-r--r-- | test/plugins/config/index.js | 1 | ||||
-rw-r--r-- | test/plugins/config/package.json | 21 |
2 files changed, 22 insertions, 0 deletions
diff --git a/test/plugins/config/index.js b/test/plugins/config/index.js new file mode 100644 index 0000000..f053ebf --- /dev/null +++ b/test/plugins/config/index.js @@ -0,0 +1 @@ +module.exports = {}; diff --git a/test/plugins/config/package.json b/test/plugins/config/package.json new file mode 100644 index 0000000..03ef744 --- /dev/null +++ b/test/plugins/config/package.json @@ -0,0 +1,21 @@ +{ + "name": "gitbook-plugin-testconfig", + "description": "Test plugin configuration", + "main": "index.js", + "version": "0.0.1", + "engines": { + "gitbook": "*" + }, + "gitbook": { + "properties": { + "hello": { + "type": "string", + "default": "world" + }, + "testRequired": { + "type": "number", + "required": true + } + } + } +}
\ No newline at end of file |