diff options
Diffstat (limited to 'test/ebook.js')
-rw-r--r-- | test/ebook.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ebook.js b/test/ebook.js index 6facd8b..9e2dab6 100644 --- a/test/ebook.js +++ b/test/ebook.js @@ -15,6 +15,7 @@ describe('eBook Generator', function () { it('should correctly convert svg images to png', function(done) { testGeneration(books[4], "ebook", function(output) { + var readmeContent = fs.readFileSync(path.join(output, "index.html"), {encoding: "utf8"}); var pageContent = fs.readFileSync(path.join(output, "sub/PAGE.html"), {encoding: "utf8"}); assert(fs.existsSync(path.join(output, "test.png"))); @@ -26,6 +27,9 @@ describe('eBook Generator', function () { assert(pageContent.indexOf('src="../test.png"') >= 0); assert(pageContent.indexOf('src="../NewTux.png"') >= 0); + + assert(readmeContent.indexOf('src="test.png"') >= 0); + assert(readmeContent.indexOf('src="NewTux.png"') >= 0); }, done); }); }); |