summaryrefslogtreecommitdiffstats
path: root/test/ebook.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-09-15 11:09:08 +0200
committerSamy Pessé <samypesse@gmail.com>2015-09-15 11:09:08 +0200
commitbaf10e9b159b64c30ce650c83eb437675434e3e2 (patch)
tree583fc00922e6ca52fea87947af0b4d5703aabf7d /test/ebook.js
parent463a947df1e5c8c862c555a5b0ae675e356a0d5c (diff)
downloadgitbook-baf10e9b159b64c30ce650c83eb437675434e3e2.zip
gitbook-baf10e9b159b64c30ce650c83eb437675434e3e2.tar.gz
gitbook-baf10e9b159b64c30ce650c83eb437675434e3e2.tar.bz2
Improve book.resolve to ensure file is in the book
Adapt tests to plugin-highlight
Diffstat (limited to 'test/ebook.js')
-rw-r--r--test/ebook.js19
1 files changed, 15 insertions, 4 deletions
diff --git a/test/ebook.js b/test/ebook.js
index 9b353d2..033fd04 100644
--- a/test/ebook.js
+++ b/test/ebook.js
@@ -37,12 +37,23 @@ describe('eBook generator', function () {
path.join(book.options.output, "index.html"),
{ encoding: "utf-8" }
);
+
+ // There are 2 styles (one from plugin-highlight and the new style)
PAGE.should.be.html({
"link": {
- count: 1,
- attributes: {
- href: "./styles/print.css"
- }
+ count: 2
+ }
+ });
+
+ PAGE.should.be.html({
+ "link[href='./styles/print.css']": {
+ count: 1
+ }
+ });
+
+ PAGE.should.be.html({
+ "link[href='gitbook/plugins/gitbook-plugin-highlight/ebook.css']": {
+ count: 1
}
});
});