summaryrefslogtreecommitdiffstats
path: root/lib/constants/__tests__
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-05-26 11:07:13 +0200
committerSamy Pessé <samypesse@gmail.com>2016-05-26 11:07:13 +0200
commit7b915428f7b780e49b641639c6ba7166132ac87c (patch)
treecda58a837ed687a995bf5636781b3f381bc852db /lib/constants/__tests__
parent0bce3517fdc05491ace7a8df9bca84f001da6904 (diff)
downloadgitbook-7b915428f7b780e49b641639c6ba7166132ac87c.zip
gitbook-7b915428f7b780e49b641639c6ba7166132ac87c.tar.gz
gitbook-7b915428f7b780e49b641639c6ba7166132ac87c.tar.bz2
Fix #1316: fix regression for supporting uppercase filenames in structure
Diffstat (limited to 'lib/constants/__tests__')
-rw-r--r--lib/constants/__tests__/configSchema.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/constants/__tests__/configSchema.js b/lib/constants/__tests__/configSchema.js
index 1541219..efc99b9 100644
--- a/lib/constants/__tests__/configSchema.js
+++ b/lib/constants/__tests__/configSchema.js
@@ -22,6 +22,16 @@ describe('configSchema', function() {
expect(result.errors.length).toBe(0);
});
+ it('should accept uppercase in filename', function() {
+ var result = validate({
+ structure: {
+ readme: 'BOOK.adoc'
+ }
+ });
+
+ expect(result.errors.length).toBe(0);
+ });
+
it('should not accept filepath', function() {
var result = validate({
structure: {