diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-29 22:42:41 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-29 22:42:41 +0100 |
commit | 56907044443ba42eaa0faa7733d90d41cf513966 (patch) | |
tree | ebce42b47978129b499d58b00c8e11d245eb7243 /test/ebook.js | |
parent | 8a8ffb613442bb37570a5081bf3e1b7943c4b61e (diff) | |
download | gitbook-56907044443ba42eaa0faa7733d90d41cf513966.zip gitbook-56907044443ba42eaa0faa7733d90d41cf513966.tar.gz gitbook-56907044443ba42eaa0faa7733d90d41cf513966.tar.bz2 |
Download external images in ebook format
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 38e6f13..9432afa 100644 --- a/test/ebook.js +++ b/test/ebook.js @@ -18,6 +18,10 @@ describe('eBook Generator', function () { var readmeContent = fs.readFileSync(path.join(output, "index.html"), {encoding: "utf8"}); var pageContent = fs.readFileSync(path.join(output, "sub/PAGE.html"), {encoding: "utf8"}); + // Remote image + assert(pageContent.indexOf('src="../Tux.png"') >= 0); + assert(fs.existsSync(path.join(output, "Tux.png"))); + assert(fs.existsSync(path.join(output, "test.png"))); assert(fs.existsSync(path.join(output, "NewTux.png"))); |