diff options
Diffstat (limited to 'lib/constants/__tests__/configSchema.js')
-rw-r--r-- | lib/constants/__tests__/configSchema.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/constants/__tests__/configSchema.js b/lib/constants/__tests__/configSchema.js index 546ec82..1541219 100644 --- a/lib/constants/__tests__/configSchema.js +++ b/lib/constants/__tests__/configSchema.js @@ -22,5 +22,15 @@ describe('configSchema', function() { expect(result.errors.length).toBe(0); }); + it('should not accept filepath', function() { + var result = validate({ + structure: { + readme: 'folder/myFile.md' + } + }); + + expect(result.errors.length).toBe(1); + }); + }); }); |