summaryrefslogtreecommitdiffstats
path: root/test/ebook.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ebook.js')
-rw-r--r--test/ebook.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/ebook.js b/test/ebook.js
index 033fd04..b065ae7 100644
--- a/test/ebook.js
+++ b/test/ebook.js
@@ -1,8 +1,8 @@
-var fs = require('fs');
-var path = require('path');
+var fs = require("fs");
+var path = require("path");
-describe('eBook generator', function () {
- describe('Basic Book', function() {
+describe("eBook generator", function () {
+ describe("Basic Book", function() {
var book;
before(function() {
@@ -12,17 +12,17 @@ describe('eBook generator', function () {
});
});
- it('should correctly output a SUMMARY.html', function() {
+ it("should correctly output a SUMMARY.html", function() {
book.should.have.file("SUMMARY.html");
});
- it('should correctly copy assets', function() {
+ it("should correctly copy assets", function() {
book.should.have.file("gitbook");
book.should.have.file("gitbook/style.css");
});
});
- describe('Custom styles', function() {
+ describe("Custom styles", function() {
var book;
before(function() {
@@ -32,7 +32,7 @@ describe('eBook generator', function () {
});
});
- it('should remove default print.css', function() {
+ it("should remove default print.css", function() {
var PAGE = fs.readFileSync(
path.join(book.options.output, "index.html"),
{ encoding: "utf-8" }
@@ -46,21 +46,21 @@ describe('eBook generator', function () {
});
PAGE.should.be.html({
- "link[href='./styles/print.css']": {
+ "link[href=\"./styles/print.css\"]": {
count: 1
}
});
PAGE.should.be.html({
- "link[href='gitbook/plugins/gitbook-plugin-highlight/ebook.css']": {
+ "link[href=\"gitbook/plugins/gitbook-plugin-highlight/ebook.css\"]": {
count: 1
}
});
});
- it('should correctly print.css', function() {
+ it("should correctly print.css", function() {
book.should.have.file("styles");
book.should.have.file("styles/print.css");
});
- })
+ });
});