diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-21 23:03:09 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-21 23:03:09 +0100 |
commit | a492c66321e4b32d77e0d5d6456c3a266c75111d (patch) | |
tree | 4abc9dacdad6855fc55228239e2faa949b2ed729 /test/generation.js | |
parent | 85930161f7a32c6c5c7de82a47554ed2855c14df (diff) | |
download | gitbook-a492c66321e4b32d77e0d5d6456c3a266c75111d.zip gitbook-a492c66321e4b32d77e0d5d6456c3a266c75111d.tar.gz gitbook-a492c66321e4b32d77e0d5d6456c3a266c75111d.tar.bz2 |
Copy files from book to output
Add test for personalised styles
Diffstat (limited to 'test/generation.js')
-rw-r--r-- | test/generation.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/generation.js b/test/generation.js index 1d73068..a8f9c69 100644 --- a/test/generation.js +++ b/test/generation.js @@ -54,4 +54,13 @@ describe('Book generation', function () { assert(fs.existsSync(path.join(output, "index.html"))); }, done); }); + + it('should correctly include styles in website', function(done) { + testGeneration(books[0], "site", function(output) { + assert(fs.existsSync(path.join(output, "styles/website.css"))); + + var INDEX = fs.readFileSync(path.join(output, "index.html")).toString(); + assert(INDEX.indexOf("styles/website.css") > 0); + }, done); + }); }); |