summaryrefslogtreecommitdiffstats
path: root/test/parsing.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-21 10:17:58 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-21 10:17:58 +0100
commit9f9265ad7620059c2ee6ec829235269a6ee02946 (patch)
tree7ec49e058a262f2d3b3d4b4b55e5f4f081b1d7d9 /test/parsing.js
parenta5ebbc34c7333880b5a194cbe26041029e2cdbfb (diff)
downloadgitbook-9f9265ad7620059c2ee6ec829235269a6ee02946.zip
gitbook-9f9265ad7620059c2ee6ec829235269a6ee02946.tar.gz
gitbook-9f9265ad7620059c2ee6ec829235269a6ee02946.tar.bz2
Add asciidoc support
Diffstat (limited to 'test/parsing.js')
-rw-r--r--test/parsing.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/parsing.js b/test/parsing.js
index 4e76d2c..7be50cd 100644
--- a/test/parsing.js
+++ b/test/parsing.js
@@ -8,6 +8,11 @@ describe('Book parsing', function () {
assert.equal(book1.options.description, 'Test description');
});
+ it('should correctly parse the readme with asciidoc', function() {
+ assert.equal(book3.options.title, 'My Book');
+ assert.equal(book3.options.description, 'Test description');
+ });
+
it('should correctly parse the summary', function() {
var LEXED = book1.summary;