diff options
Diffstat (limited to 'test/glossary.js')
-rw-r--r-- | test/glossary.js | 20 |
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); + }); + }); +}); |