summaryrefslogtreecommitdiffstats
path: root/test/format.js
blob: 2ec1a6f7590a1bac104879761b93d56069064ece (plain)
1
2
3
4
5
6
7
8
9
10
11
describe('Formatting', function () {
    it('should provide formatting with book.formatString', function() {
        return books.parse('basic')
        .then(function(book) {
            return book.formatString('markdown', 'this is a **test**');
        })
        .then(function(content) {
            content.should.equal('<p>this is a <strong>test</strong></p>\n');
        });
    });
});