1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 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); }); }); });