summaryrefslogtreecommitdiffstats
path: root/test/conrefs.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-10-20 17:09:15 +0200
committerSamy Pessé <samypesse@gmail.com>2015-10-20 17:09:15 +0200
commit4fea85289e1d2cf41bd94656033b8b5748d80bd8 (patch)
treea5f5e51960e075803302540b29b27dc96ca4e91b /test/conrefs.js
parent2faf53e16b3e0e401264af214ea6614f9b46103d (diff)
parentba5f9132c9ef27a3922f475646ddff3a419cb372 (diff)
downloadgitbook-4fea85289e1d2cf41bd94656033b8b5748d80bd8.zip
gitbook-4fea85289e1d2cf41bd94656033b8b5748d80bd8.tar.gz
gitbook-4fea85289e1d2cf41bd94656033b8b5748d80bd8.tar.bz2
Merge pull request #983 from GitbookIO/fix/982
Fix #982: correctly handle templating in imported content
Diffstat (limited to 'test/conrefs.js')
-rw-r--r--test/conrefs.js42
1 files changed, 21 insertions, 21 deletions
diff --git a/test/conrefs.js b/test/conrefs.js
index 4f654b0..32e4058 100644
--- a/test/conrefs.js
+++ b/test/conrefs.js
@@ -1,66 +1,66 @@
-var fs = require("fs");
-var path = require("path");
+var fs = require('fs');
+var path = require('path');
-describe("ConRefs", function () {
+describe('ConRefs', function () {
var book, readme;
before(function() {
- return books.generate("conrefs", "website")
+ return books.generate('conrefs', 'website')
.then(function(_book) {
book = _book;
readme = fs.readFileSync(
- path.join(book.options.output, "index.html"),
- { encoding: "utf-8" }
+ path.join(book.options.output, 'index.html'),
+ { encoding: 'utf-8' }
);
});
});
- it("should handle local references", function() {
+ it('should handle local references', function() {
readme.should.be.html({
- ".page-inner p#t1": {
+ '.page-inner p#t1': {
count: 1,
- text: "Hello World",
+ text: 'Hello World',
trim: true
}
});
});
- it("should handle local references with absolute paths", function() {
+ it('should handle local references with absolute paths', function() {
readme.should.be.html({
- ".page-inner p#t2": {
+ '.page-inner p#t2': {
count: 1,
- text: "Hello World",
+ text: 'Hello World',
trim: true
}
});
});
- it("should correctly include file from git reference", function() {
+ it('should correctly include file from git reference', function() {
readme.should.be.html({
- ".page-inner p#t3": {
+ '.page-inner p#t3': {
count: 1,
- text: "Hello from git",
+ text: 'Hello from git',
trim: true
}
});
});
- it("should correctly handle deep include in git reference", function() {
+ it('should correctly handle deep include in git reference', function() {
readme.should.be.html({
- ".page-inner p#t4": {
+ '.page-inner p#t4': {
count: 1,
- text: "First Hello. Hello from git",
+ text: 'First Hello. Hello from git',
trim: true
}
});
});
- it("should correctly handle absolute include in git reference", function() {
+ it('should correctly handle absolute include in git reference', function() {
readme.should.be.html({
- ".page-inner p#t5": {
+ '.page-inner p#t5': {
count: 1,
- text: "First Hello. Hello from git",
+ text: 'First Hello. Hello from git',
trim: true
}
});