summaryrefslogtreecommitdiffstats
path: root/test/glossary.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-03-24 10:24:49 +0100
committerSamy Pessé <samypesse@gmail.com>2015-03-24 10:24:49 +0100
commit61c07e8876e1187b787dec412a496465a7f3bac0 (patch)
treec22caeebd05af701a68511d774c2b16f8f813dc4 /test/glossary.js
parentd317741144c3179bf0a88eb731bb8195426405a6 (diff)
downloadgitbook-61c07e8876e1187b787dec412a496465a7f3bac0.zip
gitbook-61c07e8876e1187b787dec412a496465a7f3bac0.tar.gz
gitbook-61c07e8876e1187b787dec412a496465a7f3bac0.tar.bz2
Add test for glossary parsing
Diffstat (limited to 'test/glossary.js')
-rw-r--r--test/glossary.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/glossary.js b/test/glossary.js
new file mode 100644
index 0000000..16ab0fc
--- /dev/null
+++ b/test/glossary.js
@@ -0,0 +1,20 @@
+var fs = require('fs');
+var path = require('path');
+
+describe('Glossary', function () {
+ describe('Parsing', function() {
+ var book;
+
+ before(function() {
+ return books.parse("glossary", "website")
+ .then(function(_book) {
+ book = _book;
+ });
+ });
+
+ it('should correctly list items', function() {
+ book.should.have.property("glossary");
+ book.glossary.should.have.lengthOf(2);
+ });
+ });
+});