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