summaryrefslogtreecommitdiffstats
path: root/test/format.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/format.js')
-rw-r--r--test/format.js11
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');
+ });
+ });
+});