diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-22 18:21:30 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-22 18:21:30 +0100 |
commit | 0ba36c6f4ed316cc157c701abe4728d64da231b4 (patch) | |
tree | be6a43d28d1411fe60cac8405dde33b2b38e6a52 /test | |
parent | c47093e82a1814dd421c37fc3cbef9512541d526 (diff) | |
download | gitbook-0ba36c6f4ed316cc157c701abe4728d64da231b4.zip gitbook-0ba36c6f4ed316cc157c701abe4728d64da231b4.tar.gz gitbook-0ba36c6f4ed316cc157c701abe4728d64da231b4.tar.bz2 |
Use external gitbook parsers
Diffstat (limited to 'test')
-rw-r--r-- | test/parsing.js | 2 | ||||
-rw-r--r-- | test/website.js | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/test/parsing.js b/test/parsing.js index f61a4fe..ef87a91 100644 --- a/test/parsing.js +++ b/test/parsing.js @@ -28,7 +28,7 @@ describe('Book parsing', function () { assert.equal(LEXED[0].name, "Test"); assert.equal(LEXED[0].description, "a test text"); - assert.equal(LEXED[1].id, "test 2"); + assert.equal(LEXED[1].id, "test_2"); assert.equal(LEXED[1].name, "Test 2"); assert.equal(LEXED[1].description, "a second test"); }); diff --git a/test/website.js b/test/website.js index f1dabfb..54dfc8a 100644 --- a/test/website.js +++ b/test/website.js @@ -25,6 +25,7 @@ describe('Website Generator', function () { it('should correctly generate a multilingual book to website', function(done) { testGeneration(books[2], "site", function(output) { assert(fs.existsSync(path.join(output, "index.html"))); + assert(fs.existsSync(path.join(output, "gitbook"))); assert(fs.existsSync(path.join(output, "fr/index.html"))); assert(fs.existsSync(path.join(output, "en/index.html"))); }, done); |