summaryrefslogtreecommitdiffstats
path: root/test/codehighlighting.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-09-15 14:21:27 +0200
committerSamy Pessé <samypesse@gmail.com>2015-09-15 14:21:27 +0200
commit6732957e42350b3aefa4b1c80371baea92950651 (patch)
tree1605473bf22c7e4ab90a6cc9bebf5cb807fa1d90 /test/codehighlighting.js
parent5f56098ae7fae80a4dd75a944c38201560b480c6 (diff)
parent1fd00068595dfced5a0f16ac05ae2553d09608bc (diff)
downloadgitbook-6732957e42350b3aefa4b1c80371baea92950651.zip
gitbook-6732957e42350b3aefa4b1c80371baea92950651.tar.gz
gitbook-6732957e42350b3aefa4b1c80371baea92950651.tar.bz2
Merge pull request #930 from GitbookIO/jshint
Add config for jshint and fix lint errors
Diffstat (limited to 'test/codehighlighting.js')
-rw-r--r--test/codehighlighting.js26
1 files changed, 12 insertions, 14 deletions
diff --git a/test/codehighlighting.js b/test/codehighlighting.js
index e35f37e..d79fc85 100644
--- a/test/codehighlighting.js
+++ b/test/codehighlighting.js
@@ -1,16 +1,14 @@
-var _ = require('lodash');
-var should = require('should');
-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;
@@ -28,29 +26,29 @@ describe('Code Highlighting', function () {
});
});
- it('should correctly replace highlighting', function() {
+ it("should correctly replace highlighting", function() {
PAGE.should.be.html({
"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": {
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": {
index: 2,
- text: 'code_test 3_code'
+ text: "code_test 3_code"
}
});
});