diff options
Diffstat (limited to 'lib/constants/__tests__/configSchema.js')
-rw-r--r-- | lib/constants/__tests__/configSchema.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/constants/__tests__/configSchema.js b/lib/constants/__tests__/configSchema.js new file mode 100644 index 0000000..546ec82 --- /dev/null +++ b/lib/constants/__tests__/configSchema.js @@ -0,0 +1,26 @@ +var jsonschema = require('jsonschema'); +var schema = require('../configSchema'); + +describe('configSchema', function() { + + function validate(cfg) { + var v = new jsonschema.Validator(); + return v.validate(cfg, schema, { + propertyName: 'config' + }); + } + + describe('structure', function() { + + it('should accept dot in filename', function() { + var result = validate({ + structure: { + readme: 'book-intro.adoc' + } + }); + + expect(result.errors.length).toBe(0); + }); + + }); +}); |