diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-02-17 21:25:08 +0100 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-02-17 21:25:08 +0100 |
commit | 1ec8b7c32403c2252ea379c327349fcc937b57fc (patch) | |
tree | fa775c37a183a376af09a0c3e25b44d6432a84bb /test/parse.js | |
parent | e75002a96d00f608f75236344ceb4434c487d863 (diff) | |
download | gitbook-1ec8b7c32403c2252ea379c327349fcc937b57fc.zip gitbook-1ec8b7c32403c2252ea379c327349fcc937b57fc.tar.gz gitbook-1ec8b7c32403c2252ea379c327349fcc937b57fc.tar.bz2 |
Add glossary as a normal page
Diffstat (limited to 'test/parse.js')
-rw-r--r-- | test/parse.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/parse.js b/test/parse.js index 72e0260..e190107 100644 --- a/test/parse.js +++ b/test/parse.js @@ -19,6 +19,17 @@ describe('Parsing', function() { }); }); + it('should add GLOSSARY as a page', function() { + return mock.setupDefaultBook({ + 'GLOSSARY.md': '' + }) + .then(function(book) { + return book.parse() + .then(function() { + book.hasPage('GLOSSARY.md').should.equal(true); + }); + }); + }); describe('Multilingual book', function() { var book; |