summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/fixtures/test0/book.json2
-rw-r--r--test/fixtures/test0/styles/website.css2
-rw-r--r--test/fixtures/test1/book.json6
-rw-r--r--test/fixtures/test4/book.js2
-rw-r--r--test/fixtures/test4/test.svg12
-rw-r--r--test/helper.js6
-rw-r--r--test/json.js4
-rw-r--r--test/parsing.js4
-rw-r--r--test/plugins/blocks/index.js22
-rw-r--r--test/plugins/filters/index.js2
-rw-r--r--test/plugins/resources/index.js8
11 files changed, 35 insertions, 35 deletions
diff --git a/test/fixtures/test0/book.json b/test/fixtures/test0/book.json
index a2191b8..41faa63 100644
--- a/test/fixtures/test0/book.json
+++ b/test/fixtures/test0/book.json
@@ -1,3 +1,3 @@
{
- "title": "Test"
+ "title": "Test"
} \ No newline at end of file
diff --git a/test/fixtures/test0/styles/website.css b/test/fixtures/test0/styles/website.css
index f0d5b13..5c5e887 100644
--- a/test/fixtures/test0/styles/website.css
+++ b/test/fixtures/test0/styles/website.css
@@ -1,3 +1,3 @@
body {
- background: red;
+ background: red;
}
diff --git a/test/fixtures/test1/book.json b/test/fixtures/test1/book.json
index 82c15c3..edaa4fc 100644
--- a/test/fixtures/test1/book.json
+++ b/test/fixtures/test1/book.json
@@ -1,5 +1,5 @@
{
- "structure": {
- "readme": "intro.md"
- }
+ "structure": {
+ "readme": "intro.md"
+ }
} \ No newline at end of file
diff --git a/test/fixtures/test4/book.js b/test/fixtures/test4/book.js
index bf617cd..4642b56 100644
--- a/test/fixtures/test4/book.js
+++ b/test/fixtures/test4/book.js
@@ -1,3 +1,3 @@
module.exports = {
- title: "Test 2"
+ title: "Test 2"
};
diff --git a/test/fixtures/test4/test.svg b/test/fixtures/test4/test.svg
index 417f2c1..48bba70 100644
--- a/test/fixtures/test4/test.svg
+++ b/test/fixtures/test4/test.svg
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
<svg version="1.1" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360">
- <title id="test-title">basic SVG tiny doc</title>
- <g id="test-body-content">
- <text font-family="Arial" font-size="14" text-anchor="middle" x="225" y="25">hello world</text>
- </g>
- <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">Revision: 1.1</text>
- <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
+ <title id="test-title">basic SVG tiny doc</title>
+ <g id="test-body-content">
+ <text font-family="Arial" font-size="14" text-anchor="middle" x="225" y="25">hello world</text>
+ </g>
+ <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">Revision: 1.1</text>
+ <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
</svg>
diff --git a/test/helper.js b/test/helper.js
index 5e16bc0..528d491 100644
--- a/test/helper.js
+++ b/test/helper.js
@@ -49,7 +49,7 @@ global.books = _.chain(books)
before(function(done) {
qdone(
- _.reduce(global.books, function(prev, book) {
+ _.reduce(global.books, function(prev, book) {
return prev.then(function() {
return fsUtil.remove(path.join(book.root, "_book"));
})
@@ -57,6 +57,6 @@ before(function(done) {
return book.parse();
});
}, Q()),
- done
- );
+ done
+ );
});
diff --git a/test/json.js b/test/json.js
index c600ffa..d7f6aac 100644
--- a/test/json.js
+++ b/test/json.js
@@ -15,7 +15,7 @@ describe('JSON generator', function () {
});
it('should correctly generate a book to json with sub folders', function(done) {
- testGeneration(books[1], "json", function(output) {
+ testGeneration(books[1], "json", function(output) {
assert(fs.existsSync(path.join(output, "README.json")));
assert(fs.existsSync(path.join(output, "intro.json")));
assert(fs.existsSync(path.join(output, "sub/test1.json")));
@@ -26,7 +26,7 @@ describe('JSON generator', function () {
});
it('should correctly generate a multilingual book to json', function(done) {
- testGeneration(books[2], "json", function(output) {
+ testGeneration(books[2], "json", function(output) {
assert(fs.existsSync(path.join(output, "README.json")));
assert(fs.existsSync(path.join(output, "en/README.json")));
assert(fs.existsSync(path.join(output, "fr/README.json")));
diff --git a/test/parsing.js b/test/parsing.js
index 0f0962e..498de9f 100644
--- a/test/parsing.js
+++ b/test/parsing.js
@@ -5,7 +5,7 @@ var assert = require('assert');
describe('Book parsing', function () {
it('should correctly parse the readme', function() {
assert.equal(books[1].options.title, 'My Book');
- assert.equal(books[1].options.description, 'Test description');
+ assert.equal(books[1].options.description, 'Test description');
});
it('should correctly parse the readme with asciidoc', function() {
@@ -21,7 +21,7 @@ describe('Book parsing', function () {
assert.equal(LEXED.chapters[0].introduction, true);
assert.equal(LEXED.chapters[0].external, false);
- assert.equal(LEXED.chapters[1].path, 'test.md');
+ assert.equal(LEXED.chapters[1].path, 'test.md');
assert.equal(LEXED.chapters[1].exists, false);
assert.equal(LEXED.chapters[1].introduction, false);
assert.equal(LEXED.chapters[1].external, false);
diff --git a/test/plugins/blocks/index.js b/test/plugins/blocks/index.js
index 0a02ff7..32f1910 100644
--- a/test/plugins/blocks/index.js
+++ b/test/plugins/blocks/index.js
@@ -2,22 +2,22 @@ var assert = require("assert");
module.exports = {
blocks: {
- "test": {
+ "test": {
shortcuts: {
parsers: ["markdown"],
start: "$$",
end: "$$"
},
- process: function(blk) {
- return "test"+blk.body+"test";
- }
- },
- "test2": {
- end: "endtest2end",
- process: function(blk) {
- return "test2"+blk.body+"test2";
- }
- },
+ process: function(blk) {
+ return "test"+blk.body+"test";
+ }
+ },
+ "test2": {
+ end: "endtest2end",
+ process: function(blk) {
+ return "test2"+blk.body+"test2";
+ }
+ },
"test3join": {
blocks: [
"also"
diff --git a/test/plugins/filters/index.js b/test/plugins/filters/index.js
index 0e2f1a2..2cf53b1 100644
--- a/test/plugins/filters/index.js
+++ b/test/plugins/filters/index.js
@@ -4,7 +4,7 @@ module.exports = {
return "Hello "+text;
},
helloCtx: function(text) {
- return text+":"+this.book.root;
+ return text+":"+this.book.root;
}
}
}; \ No newline at end of file
diff --git a/test/plugins/resources/index.js b/test/plugins/resources/index.js
index d98d6f0..bafa54b 100644
--- a/test/plugins/resources/index.js
+++ b/test/plugins/resources/index.js
@@ -1,12 +1,12 @@
module.exports = {
- website: {
+ website: {
js: [
"https://cdn.mathjax.org/mathjax/2.4-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
]
},
ebook: {
- css: [
- "test"
- ]
+ css: [
+ "test"
+ ]
}
};