diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-10-05 10:07:04 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-10-05 10:07:04 +0200 |
commit | 74396e7240f00b6f38239eedf2b10547a4868b4c (patch) | |
tree | a1630e4c74ac6ae32726c8ca31b1c99d5e005509 /test/format.js | |
parent | 6c2539e886a2893aa7d9bd4c4f84260145de6bd1 (diff) | |
download | gitbook-74396e7240f00b6f38239eedf2b10547a4868b4c.zip gitbook-74396e7240f00b6f38239eedf2b10547a4868b4c.tar.gz gitbook-74396e7240f00b6f38239eedf2b10547a4868b4c.tar.bz2 |
Add method book.formatString
Diffstat (limited to 'test/format.js')
-rw-r--r-- | test/format.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/format.js b/test/format.js new file mode 100644 index 0000000..2ec1a6f --- /dev/null +++ b/test/format.js @@ -0,0 +1,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'); + }); + }); +}); |