summaryrefslogtreecommitdiffstats
path: root/test/node_modules
diff options
context:
space:
mode:
Diffstat (limited to 'test/node_modules')
-rw-r--r--test/node_modules/gitbook-plugin-test-filters/index.js21
-rw-r--r--test/node_modules/gitbook-plugin-test-filters/package.json7
2 files changed, 28 insertions, 0 deletions
diff --git a/test/node_modules/gitbook-plugin-test-filters/index.js b/test/node_modules/gitbook-plugin-test-filters/index.js
new file mode 100644
index 0000000..71f2752
--- /dev/null
+++ b/test/node_modules/gitbook-plugin-test-filters/index.js
@@ -0,0 +1,21 @@
+var should = require('should');
+
+module.exports = {
+ filters: {
+ // Simple test
+ hello: function(s) {
+ return 'Hello ' + s + '!';
+ },
+
+ // 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-filters/package.json b/test/node_modules/gitbook-plugin-test-filters/package.json
new file mode 100644
index 0000000..d555d06
--- /dev/null
+++ b/test/node_modules/gitbook-plugin-test-filters/package.json
@@ -0,0 +1,7 @@
+{
+ "name": "gitbook-plugin-test-filters",
+ "version": "1.0.0",
+ "engines": {
+ "gitbook": "*"
+ }
+} \ No newline at end of file