diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/fixtures/test0/styles/website.css | 3 | ||||
-rw-r--r-- | test/generation.js | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/fixtures/test0/styles/website.css b/test/fixtures/test0/styles/website.css new file mode 100644 index 0000000..f0d5b13 --- /dev/null +++ b/test/fixtures/test0/styles/website.css @@ -0,0 +1,3 @@ +body { + background: red; +} 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); + }); }); |