diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-09-15 12:27:07 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-09-15 12:27:07 +0200 |
commit | 57a0c3bad8333d93815257d7ff603bc34b8b3f4d (patch) | |
tree | cf5f447e84e3b4ac2d74d7092d8c522bd6e67b79 /test/ebook.js | |
parent | 463a947df1e5c8c862c555a5b0ae675e356a0d5c (diff) | |
parent | 2a52326a454a23444bd8f0395a9ab8a1f5f68831 (diff) | |
download | gitbook-57a0c3bad8333d93815257d7ff603bc34b8b3f4d.zip gitbook-57a0c3bad8333d93815257d7ff603bc34b8b3f4d.tar.gz gitbook-57a0c3bad8333d93815257d7ff603bc34b8b3f4d.tar.bz2 |
Merge pull request #929 from GitbookIO/feature/improve_resolve
Improve paths resolving for conrefs
Diffstat (limited to 'test/ebook.js')
-rw-r--r-- | test/ebook.js | 19 |
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 } }); }); |