summaryrefslogtreecommitdiffstats
path: root/test/glossary.js
blob: 16ab0fc1e5c474a03082f4b347a4316457b8d086 (plain)
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);
        });
    });
});