summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-10-21 16:22:47 +0200
committerSamy Pessé <samypesse@gmail.com>2015-10-21 16:22:47 +0200
commit722109faf0408fce189a142776bf10773f8682b4 (patch)
treea66d0cc20ebacce0f10aa02fe72aa658a14b7023
parentd4dca7736a024d431177dd515d20367c6b7db042 (diff)
downloadgitbook-722109faf0408fce189a142776bf10773f8682b4.zip
gitbook-722109faf0408fce189a142776bf10773f8682b4.tar.gz
gitbook-722109faf0408fce189a142776bf10773f8682b4.tar.bz2
Update gitbook-parsers@0.8.7
-rw-r--r--package.json2
-rw-r--r--test/codehighlighting.js44
2 files changed, 23 insertions, 23 deletions
diff --git a/package.json b/package.json
index 11862a9..5797c65 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,7 @@
"resolve": "0.6.3",
"fs-extra": "0.16.5",
"fstream-ignore": "1.0.2",
- "gitbook-parsers": "0.8.6",
+ "gitbook-parsers": "0.8.7",
"gitbook-plugin-highlight": "1.0.3",
"gitbook-plugin-sharing": "1.0.1",
"gitbook-plugin-search": "1.0.2",
diff --git a/test/codehighlighting.js b/test/codehighlighting.js
index 9f392af..f167980 100644
--- a/test/codehighlighting.js
+++ b/test/codehighlighting.js
@@ -1,63 +1,63 @@
-var path = require("path");
-var fs = require("fs");
+var path = require('path');
+var fs = require('fs');
-var Plugin = require("../lib/plugin");
-var PLUGINS_ROOT = path.resolve(__dirname, "plugins");
+var Plugin = require('../lib/plugin');
+var PLUGINS_ROOT = path.resolve(__dirname, 'plugins');
-describe("Code Highlighting", function () {
+describe('Code Highlighting', function () {
var book, PAGE;
before(function() {
- return books.generate("highlight", "website", {
+ return books.generate('highlight', 'website', {
prepare: function(_book) {
book = _book;
- var plugin = new Plugin(book, "replace_highlight");
- plugin.load("./replace_highlight", PLUGINS_ROOT);
+ var plugin = new Plugin(book, 'replace_highlight');
+ plugin.load('./replace_highlight', PLUGINS_ROOT);
book.plugins.load(plugin);
}
})
.then(function() {
PAGE = fs.readFileSync(
- path.join(book.options.output, "index.html"),
- { encoding: "utf-8" }
+ path.join(book.options.output, 'index.html'),
+ { encoding: 'utf-8' }
);
});
});
- it("should correctly replace highlighting", function() {
+ it('should correctly replace highlighting', function() {
PAGE.should.be.html({
- "code": {
+ 'code': {
index: 0,
- text: "code_test 1\n_code"
+ text: 'code_test 1\n_code'
}
});
});
- it("should correctly replace highlighting with language", function() {
+ it('should correctly replace highlighting with language', function() {
PAGE.should.be.html({
- "code": {
+ 'code': {
index: 1,
- text: "lang_test 2\n_lang"
+ text: 'lang_test 2\n_lang'
}
});
});
- it("should correctly replace highlighting for inline code", function() {
+ it('should correctly replace highlighting for inline code', function() {
PAGE.should.be.html({
- "code": {
+ 'code': {
index: 2,
- text: "code_test 3_code"
+ text: 'code_test 3_code'
}
});
});
- it("should correctly replace highlighting for inline code with html tags", function() {
+ it('should correctly replace highlighting for inline code with html tags', function() {
PAGE.should.be.html({
- "code": {
+ 'code': {
index: 3,
- text: "code_<test>_code"
+ text: 'code_<test>_code'
}
});
});